From: August <fusionfive@comhem.se>
Subject: Re: Indenting in C++ Mode
Date: Mon, 28 Feb 2005 17:31:57 +0100 [thread overview]
Message-ID: <1109608317.5327.9.camel@c83-250-206-22.bredband.comhem.se> (raw)
In-Reply-To: <000001c51dab$c290a680$410a0a0a@spectral.com>
On mån, 2005-02-28 at 10:39 -0500, Peter Rochford wrote:
> Dear GNU Help,
>
> How do I customize Emacs so that when editing a C++ file the
> indentation of for loops, etc., will be 3 spaces instead of the
> default of 2 spaces?
Add the line
(add-hook 'c++-mode-hook '(lambda () (setq c-basic-offset 3)))
to your `~/.emacs'.
--
August
next prev parent reply other threads:[~2005-02-28 16:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-28 15:39 Indenting in C++ Mode Peter Rochford
2005-02-28 16:31 ` August [this message]
[not found] <mailman.2007.1109607712.32256.help-gnu-emacs@gnu.org>
2005-03-01 15:43 ` David Hansen
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=1109608317.5327.9.camel@c83-250-206-22.bredband.comhem.se \
--to=fusionfive@comhem.se \
/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.