help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please help: How to reformat existing c++ files using emacs


From: Quokka
Subject: Re: Please help: How to reformat existing c++ files using emacs
Date: Wed, 30 Mar 2005 09:43:45 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104

Jochen Küpper wrote:
"Xiaopeng Xiong" <address@hidden> writes:


formatting a single file is enough for me. If you know any command
to do so, please help!


C-PgUp C-<SPC> C-PgDn M-x indent region or similar...

Alternatively use a seperate tool such as gnu indent...

http://www.gnu.org/software/indent/indent.html

I find this a much better way to go for indenting
multiple files... also indent will do formating that
emacs will not! such as moving the position of
braces.

Although emacs is the One True Editor.. sometimes
it is better to use other tools.

Paul


reply via email to

[Prev in Thread] Current Thread [Next in Thread]