Created
August 30, 2010 06:43
-
-
Save zev/557106 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Fix indentation for buffer | |
(defun fix-read-only-indentation () | |
"Fix the indentation of a read only file. For now you have to | |
remember to not save this change if you have write access to the | |
file" | |
(interactive) | |
(toggle-read-only) | |
(indent-region (point-min) (point-max))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment