开发者

How to configure emacs to auto-indent with fixed spaces instead of align to the open parenthesis?

For example, I would lik开发者_运维技巧e this style of indention:

int expectedIndent(int param1,
    int param2){}

instead of this style:

int currentIndent(int param1,
                  int param2){}

Thanks in advance, Utoah


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜