From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: August Newsgroups: gmane.emacs.help Subject: Re: Indenting in C++ Mode Date: Mon, 28 Feb 2005 17:31:57 +0100 Message-ID: <1109608317.5327.9.camel@c83-250-206-22.bredband.comhem.se> References: <000001c51dab$c290a680$410a0a0a@spectral.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1109610656 6744 80.91.229.2 (28 Feb 2005 17:10:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2005 17:10:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 28 18:10:56 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5oPo-00076I-E8 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Feb 2005 18:10:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5oiC-0006Ox-MP for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Feb 2005 12:29:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D5oYF-0006wY-5a for help-gnu-emacs@gnu.org; Mon, 28 Feb 2005 12:19:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D5oYA-0006ts-SE for help-gnu-emacs@gnu.org; Mon, 28 Feb 2005 12:19:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5oVI-0005IW-Ql for help-gnu-emacs@gnu.org; Mon, 28 Feb 2005 12:16:20 -0500 Original-Received: from [81.228.10.107] (helo=av9-2-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D5nnh-0003ji-1D for help-gnu-emacs@gnu.org; Mon, 28 Feb 2005 11:31:17 -0500 Original-Received: by av9-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 0721437E78; Mon, 28 Feb 2005 17:31:16 +0100 (CET) Original-Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av9-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id E554B37E7D for ; Mon, 28 Feb 2005 17:31:15 +0100 (CET) Original-Received: from c83-250-206-22.bredband.comhem.se (c83-250-206-22.bredband.comhem.se [83.250.206.22]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id CD7C837E4A for ; Mon, 28 Feb 2005 17:31:15 +0100 (CET) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <000001c51dab$c290a680$410a0a0a@spectral.com> X-Mailer: Evolution 2.0.2 (2.0.2-3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24432 On m=C3=A5n, 2005-02-28 at 10:39 -0500, Peter Rochford wrote: > Dear GNU Help, > =20 > 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?=20 Add the line (add-hook 'c++-mode-hook '(lambda () (setq c-basic-offset 3))) to your `~/.emacs'. --=20 August