开发者

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

开发者 https://www.devze.com 2023-01-19 13:28 出处:网络
For example, I would lik开发者_运维技巧e this style of indention: int expectedIndent(int param1,

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

精彩评论

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