unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: tomas@tuxteam.de
To: Anand Dhanakshirur <asd@cdotb.ernet.in>
Cc: emacs help <help-gnu-emacs@gnu.org>
Subject: Re: How to customize the indentation of coding in C/C++ in emacs?
Date: Tue, 2 Jun 2009 09:14:31 +0200	[thread overview]
Message-ID: <20090602071431.GA6161@tomas> (raw)
In-Reply-To: <4A24A209.6050307@cdotb.ernet.in>

-----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 <ENTER>
  then
    c-offsets-alist <ENTER>

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 <ENTER>
  then
    <ENTER>

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ás
   
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFKJNFXBcgs9XrR2kYRAsNFAJoCpKqK7sjYonKIdWrUGkSgvn1QFQCdFb51
HHRB7QuPlE+EK7l7vKJEb6w=
=UCKU
-----END PGP SIGNATURE-----




  reply	other threads:[~2009-06-02  7:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-02  3:52 How to customize the indentation of coding in C/C++ in emacs? Anand Dhanakshirur
2009-06-02  7:14 ` tomas [this message]
2009-06-02  7:31   ` Anand Dhanakshirur
2009-06-02  7:22 ` Alberto Luaces

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=20090602071431.GA6161@tomas \
    --to=tomas@tuxteam.de \
    --cc=asd@cdotb.ernet.in \
    --cc=help-gnu-emacs@gnu.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).