Skip to content

Instantly share code, notes, and snippets.

@mattsears
Created June 4, 2013 16:55
Show Gist options
  • Save mattsears/5707581 to your computer and use it in GitHub Desktop.
Save mattsears/5707581 to your computer and use it in GitHub Desktop.
(defun iwb ()
"indent whole buffer"
(interactive)
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment