unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing Emacs indentation behavior
@ 2008-07-18 23:08 Nonni
  2008-07-19  2:13 ` Juanma
  2008-07-20 22:20 ` Nikolaj Schumacher
  0 siblings, 2 replies; 3+ messages in thread
From: Nonni @ 2008-07-18 23:08 UTC (permalink / raw)
  To: Help-gnu-emacs


Hi,
I'm new to using emacs. I'm currently using to to write code and its going
well apart from one thing...
Emacs' auto indentation doesn't like the way I write my braces.

The way I want to write code:

if (version < FMOD_VERSION)
{
        return 0;
}

The way Emacs wants me to write code:

if(version < FMOD_VERSION) {
        return 0;
}

If I write the if-statement my way, the indentation of the braces are wrong,
emacs produces:

if (version < FMOD_VERSION)
    {
        return 0;
    }

Is there any way to get emacs to auto-indent my code the way I want it to ?

Thanks.
-- 
View this message in context: http://www.nabble.com/Changing-Emacs-indentation-behavior-tp18539174p18539174.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 3+ messages in thread

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 23:08 Changing Emacs indentation behavior Nonni
2008-07-19  2:13 ` Juanma
2008-07-20 22:20 ` Nikolaj Schumacher

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).