How to "auto arrange" code lines of existing code?

How to "auto arrange" code lines of existing code?

Post by Manuel Rei » Fri, 11 Mar 2005 21:59:10


Hello,

if I enter new code then emacs automatically arranges my code lines
nicely. How can I automatically do this for code downloaded from
internet? I could go into each line and press "tab" to arrange the line,
but this can be very time consuming. Is there any key combination or any
way via .emacs to get this automaticated (automatically go into each
line and "press tab")?

Thank you very much in advance

CU

Manuel
 
 
 

How to "auto arrange" code lines of existing code?

Post by lutz.hor » Fri, 11 Mar 2005 22:07:19


Use M-x indent-region on an entire buffer.

Lutz