Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created April 13, 2010 12:37
Show Gist options
  • Save tbielawa/364561 to your computer and use it in GitHub Desktop.
Save tbielawa/364561 to your computer and use it in GitHub Desktop.
(defun indent-buffer ()
"Correctly indent an entire buffer"
(interactive)
(backward-page)
(set-mark-command 0)
(forward-page)
(indent-region))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment