[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing Emacs indentation behavior

From: Nonni
Subject: Changing Emacs indentation behavior
Date: Fri, 18 Jul 2008 16:08:41 -0700 (PDT)

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 ?

View this message in context:
Sent from the Emacs - Help mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]