i often open an perl, c, sgml, document and have to suffer with the document not being formatted to my liking (or not formated at all.
since i am opening a document into a mode with some formatting aids usually its usually enough to mash the downarrow and the tab key dozens of times.
is there a classic way of doing this already in existence? seems like 'indent document' would be something each mode would have.
thanks
since i am opening a document into a mode with some formatting aids usually its usually enough to mash the downarrow and the tab key dozens of times.
is there a classic way of doing this already in existence? seems like 'indent document' would be something each mode would have.
thanks
-
Re: indent document
Tue, January 27, 2004 - 7:07 AMThere's the "indent region" command, and set the region to the entire buffer. You could also create a macro that does this. -
-
Re: indent document
Tue, January 27, 2004 - 7:53 AMIn some Emacs CTL-ALT-\ on a selected region does the indent thing.
-
-
Re: indent document
Wed, March 3, 2004 - 6:29 PMC-x h
to mark the entire buffer, followed by
C-M-\
to indent the marked region, ie: everything