Skip to content

Instantly share code, notes, and snippets.

@sarcilav
Created January 6, 2010 02:16
Show Gist options
  • Save sarcilav/269942 to your computer and use it in GitHub Desktop.
Save sarcilav/269942 to your computer and use it in GitHub Desktop.
(defun indent-all()
"indent whole buffer"
(interactive)
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))(interactive)
(global-set-key [f5] 'indent-all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment