all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to change the indentation style of emacs
@ 2011-01-22 15:22 Anand Dhanakshirur
  2011-01-23 12:56 ` suvayu ali
  0 siblings, 1 reply; 6+ messages in thread
From: Anand Dhanakshirur @ 2011-01-22 15:22 UTC (permalink / raw)
  To: help-gnu-emacs

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?



      



^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.23.1295774749.8897.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2011-02-07 20:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-22 15:22 how to change the indentation style of emacs Anand Dhanakshirur
2011-01-23 12:56 ` 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

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.