如何更改 Emacs 中的大括号缩进级别?
我一生都无法通过传统的互联网手段找到任何答案,所以我希望得到一些帮助。
对我来说,Emacs 现在倾向于在大括号上进行缩进,如下所示:
if( ... )
{
}
这让我感到非常恼火;我什至从未在其他地方见过这种行为。无论如何,我期望的行为是,
if( ... )
{
}
如果有人知道如何修改它,我将不胜感激。
I can't for the life of me find any answer to this through conventional Internet means, so I'm hoping for some help.
Emacs for me right now tends to do indentation on braces as follows:
if( ... )
{
}
Which I find incredibly irritating; I've never even seen this behaviour anywhere else. At any rate, the behaviour I'm expecting is,
if( ... )
{
}
If anyone knows how to modify this, it'd be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上你想要:
对于更多缩进命令:
来源: http://www.phys.ufl。 edu/docs/emacs/emacs_251.html
还有: http://www.gnu.org/software/emacs/manual/html_node/ccmode/Indentation-Commands.html
Basically you want:
For more indentation commands:
source: http://www.phys.ufl.edu/docs/emacs/emacs_251.html
also: http://www.gnu.org/software/emacs/manual/html_node/ccmode/Indentation-Commands.html