Re: C++ re-indent suggestion
Pat Thoyts <[email protected]> 11 Nov 2006 20:01:47 +0000
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <[email protected]> |
Jean-Claude Wippler <[email protected]> writes: >Hi, > >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 >now. > >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 _____________________________________________ Metakit mailing list - [email protected] http://www.equi4.com/mailman/listinfo/metakit