【发布时间】:2016-08-05 07:54:45
【问题描述】:
我在 cygwin 中使用 emacs 24.5。我需要在文本模式下缩进 4 个空格,当我按下回车键时,换行符应该与前一行的缩进对齐。我试过以下。
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq-default electric-indent-mode 1)
但是,当我按下回车而不是缩进当前行时,它也会删除前一行的缩进。像这样
This is the first line. When I press enter, this line becomes...
This is the first line
New line - cursor is not indented in this new line.
如何获得所需的缩进?
【问题讨论】:
标签: emacs