At 01:25 PM 11/28/99 PST, Aabhas Chandra wrote:
>I don't know if this is the right mailing list for this question, If it 
>isn't then please let me know where to send this question.
>
>Is there a command to beautify the source that is loaded in the current 
>buffer ? A lot of code that I download is pretty badly indented if there 
>were a way to beautify all the source code that would be very helpful.
>

The command

  M-x apropos indent

lists 

  indent-region 

among other indent commands. C-h f indent-region explains that

indent-region is an interactive compiled Lisp function in `indent'.
(indent-region START END COLUMN)

Indent each nonblank line in the region.
With no argument, indent each line using `indent-according-to-mode',
or use `indent-region-function' to do the whole region if that's non-nil.
If there is a fill prefix, make each line start with the fill prefix.
With argument COLUMN, indent each line to that column.
Called from a program, takes three args: START, END and COLUMN.

The command 

  C-h where indent-region

reveals that indent-region is bound to the keystrokes

  M-C-\

on my system.
 

- Paul

Reply via email to