all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Quokka <NoSpam@iinet.net.au>
Subject: Re: Please help: How to reformat existing c++ files using emacs
Date: Wed, 30 Mar 2005 09:43:45 +0800	[thread overview]
Message-ID: <424a0456$0$13871$5a62ac22@per-qv1-newsreader-01.iinet.net.au> (raw)
In-Reply-To: <mailman.569.1112135487.28103.help-gnu-emacs@gnu.org>

Jochen Küpper wrote:
> "Xiaopeng Xiong" <xpxiong@purdue.edu> 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

      parent reply	other threads:[~2005-03-30  1:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29 21:46 Please help: How to reformat existing c++ files using emacs Xiaopeng Xiong
     [not found] ` <d2ciba$acg-49YGyUKL1LK+Hifv2AGDuZVzexx5G7lz@public.gmane.org>
2005-03-29 21:57   ` Jochen Küpper
     [not found] ` <mailman.569.1112135487.28103.help-gnu-emacs@gnu.org>
2005-03-30  1:43   ` Quokka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='424a0456$0$13871$5a62ac22@per-qv1-newsreader-01.iinet.net.au' \
    --to=nospam@iinet.net.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.