From: "Jochen Küpper" <jochen-+It19tn3Rl9sbm7dSapR3bNAH6kLmebB@public.gmane.org>
Subject: Re: Please help: How to reformat existing c++ files using emacs
Date: Tue, 29 Mar 2005 23:57:09 +0200 [thread overview]
Message-ID: <m3ll86qfnu.fsf@doze.jochen-kuepper.de> (raw)
In-Reply-To: <d2ciba$acg-49YGyUKL1LK+Hifv2AGDuZVzexx5G7lz@public.gmane.org> (Xiaopeng Xiong's message of "Tue, 29 Mar 2005 16:46:18 -0500")
"Xiaopeng Xiong" <xpxiong-olO2ZdjDehc3uPMLIKxrzw@public.gmane.org> 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...
,----[ C-h f indent-region RET ]
| indent-region is an interactive compiled Lisp function in `indent'.
| It is bound to C-M-\.
| (indent-region START END &optional COLUMN)
|
| Indent each nonblank line in the region.
| A numeric prefix argument specifies a column: indent each line to that column.
|
| With no prefix argument, the command chooses one of these methods and
| indents all the lines with it:
|
| 1) If `fill-prefix' is non-nil, insert `fill-prefix' at the
| beginning of each line in the region that does not already begin
| with it.
| 2) If `indent-region-function' is non-nil, call that function
| to indent the region.
| 3) Indent each line as specified by the variable `indent-line-function'.
|
| Called from a program, START and END specify the region to indent.
| If the third argument COLUMN is an integer, it specifies the
| column to indent to; if it is nil, use one of the three methods above.
|
| [back]
`----
Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
(Part 3 you find in my messages before fall 2003.)
next prev parent reply other threads:[~2005-03-29 21:57 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 [this message]
[not found] ` <mailman.569.1112135487.28103.help-gnu-emacs@gnu.org>
2005-03-30 1:43 ` Quokka
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ll86qfnu.fsf@doze.jochen-kuepper.de \
--to=jochen-+it19tn3rl9sbm7dsapr3bnah6klmebb@public.gmane.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).