Friday, May 29, 2009

A co-worker wrote a nice little lisp snippet for emacs to indent the entire buffer. I should modify it to indent a marked region, if there isn't code to do this already.

(defun indent-whole-buffer ()
"Indent the entire buffer"
(interactive)
(indent-region 0 (buffer-size)))

No comments:

Post a Comment