[Metakit] C++ re-indent suggestion
patthoyts at users.sourceforge.net
Sat Nov 11 20:01:47 CET 2006
Jean-Claude Wippler <jcw at equi4.com> writes:
>Am looking for a way to re-indent all Metakit C++ sources to clean up
>some space/tab mixups which have been creeping in there for some time
>Does anyone have a suggestion on what tool to use? After having
>tried for a bit, it looks like I'm not familiar enough with Emacs to
>make it fix the indentation of a few dozen source files, alas. Maybe
>I could get there with a pointer to the proper instruction.
>Anyway, all suggestions welcome. Nothing fancy.
The unix indent command is for indenting C source. GNU provide an
implementation with comprehensive options.
In Emacs, select the whole buffer then (assuming c++-mode) do M-C-\
and it will re-indent the file.
Pat Thoyts http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
More information about the Metakit