1 December 2009
To auto indent chunk of code in emacs, simply select the region then type the following command:
M-x indent-region
This can be applied to the entire source file too. Simply select the entire content and run the command.