views:

42

answers:

1

For example, I would like this style of indention:

int expectedIndent(int param1,
    int param2){}

instead of this style:

int currentIndent(int param1,
                  int param2){}

Thanks in advance, Utoah

A: 

Try this:

(c-set-offset 'arglist-intro '+)
(c-set-offset 'arglist-cont-nonempty '+)
(c-set-offset 'arglist-close '+)

More details: http://cc-mode.sourceforge.net/html-manual/Paren-List-Symbols.html#Paren-List-Symbols

Tao Peng