From: Anand Dhanakshirur <adhanakshirur@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: how to change the indentation style of emacs
Date: Sat, 22 Jan 2011 07:22:05 -0800 (PST) [thread overview]
Message-ID: <384843.62270.qm@web30906.mail.mud.yahoo.com> (raw)
Hi,
I am using emacs for c and c++ files.
1. Presently(default), In a C program,
after "for" loop, the next line(the next line starting with
"{" is indented(shifted) by 2 spaces.
I want to change this.
I want the next line is not shifted by 2 spaces when i press TAB key.(for indentation)
basically
Now it is, for (i=0;i<10; i++)
{
}
I want this to be changed as
for (i=0; i<10;i++)
2 .One more thing want to do.
after opening for loop of if condition,
the next line is getting shiftedby 2 spaces.
I want the next line to be shifted by 4 spaces.
How to do these 2 things?
next reply other threads:[~2011-01-22 15:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-22 15:22 Anand Dhanakshirur [this message]
2011-01-23 12:56 ` how to change the indentation style of emacs suvayu ali
[not found] ` <102513.20309.qm@web30901.mail.mud.yahoo.com>
2011-01-24 8:07 ` suvayu ali
[not found] ` <577605.6548.qm@web30901.mail.mud.yahoo.com>
2011-01-24 14:43 ` Suvayu Ali
2011-02-07 20:22 ` PJ Weisberg
[not found] <mailman.23.1295774749.8897.help-gnu-emacs@gnu.org>
2011-01-23 9:37 ` rusi
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=384843.62270.qm@web30906.mail.mud.yahoo.com \
--to=adhanakshirur@yahoo.com \
--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.
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.