From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: How to customize the indentation of coding in C/C++ in emacs? Date: Tue, 2 Jun 2009 09:14:31 +0200 Message-ID: <20090602071431.GA6161@tomas> References: <4A24A209.6050307@cdotb.ernet.in> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243926882 26783 80.91.229.12 (2 Jun 2009 07:14:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2009 07:14:42 +0000 (UTC) Cc: emacs help To: Anand Dhanakshirur Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 09:14:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBOCk-0005Fj-Rg for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 09:14:39 +0200 Original-Received: from localhost ([127.0.0.1]:33459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBOCk-0005aR-6G for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Jun 2009 03:14:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBOBl-0004ff-F4 for help-gnu-emacs@gnu.org; Tue, 02 Jun 2009 03:13:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBOBg-0004dM-FF for help-gnu-emacs@gnu.org; Tue, 02 Jun 2009 03:13:36 -0400 Original-Received: from [199.232.76.173] (port=37817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBOBg-0004dD-5n for help-gnu-emacs@gnu.org; Tue, 02 Jun 2009 03:13:32 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:7343) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBOBf-0006Ev-O9 for help-gnu-emacs@gnu.org; Tue, 02 Jun 2009 03:13:31 -0400 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104] helo=www.elogos.de) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBOBf-0004P0-28 for help-gnu-emacs@gnu.org; Tue, 02 Jun 2009 03:13:31 -0400 Original-Received: by www.elogos.de (Postfix, from userid 1000) id ECD709005C; Tue, 2 Jun 2009 09:14:31 +0200 (CEST) Content-Disposition: inline In-Reply-To: <4A24A209.6050307@cdotb.ernet.in> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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 Xref: news.gmane.org gmane.emacs.help:64895 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Jun 02, 2009 at 09:22:41AM +0530, Anand Dhanakshirur wrote: Funny, when the content of the mail is more terse than the vcard ;-) Answer: Meta-x customize-variable then c-offsets-alist Customize to heart's content! You may browse your way to there (there are lots of interesting knobs you might want to get acquainted to) by just typing Meta-x customize then and click your way along the links: Programming -> Languages -> C -> C Syntactic Indentation (you might want, as an example, switch on "C Echo Syntactic Information", which lets Emacs put the name of the syntactic construct in the echo area, sso you can see how the key for this particular indentation is called). Hope that helps - -- tom=C3=A1s =20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFKJNFXBcgs9XrR2kYRAsNFAJoCpKqK7sjYonKIdWrUGkSgvn1QFQCdFb51 HHRB7QuPlE+EK7l7vKJEb6w=3D =3DUCKU -----END PGP SIGNATURE-----