SML模式下的时髦缩进 [英] Funky indentation in SML mode
本文介绍了SML模式下的时髦缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Cj
,它被映射到 newline-and-indent
。
如果我突出显示所有内容( CM-\
),结果更有意义:
我在Ubuntu 12.10上使用Emacs 24.1.1和SML Mode 6.2。我应该怎么做?
解决方案
不要使用 newline-and-indent
。
您可以使用 reindent-then-new-and-indent
或电 - 缩进模式
。
I installed SML Mode in Emacs and the indentation is messed up. I disabled all my .emacs customizations, but that didn't make any difference. At the end of each line in the code below, I used C-j
, which is mapped to newline-and-indent
.
If I highlight everything and reindent (C-M-\
), the result makes more sense:
I'm using Emacs 24.1.1 and SML Mode 6.2 on Ubuntu 12.10. What should I do?
解决方案
Don't use newline-and-indent
.
You can use reindent-then-new-and-indent
or electric-indent-mode
instead.
这篇关于SML模式下的时髦缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文