当我在基本模式下按 tab 键时,我无法让 emacs 版本 24.3 缩进两个空格。我已经阅读了许多其他帖子,例如set 4 Space Indent in Emacs。我很确定这曾经在较旧的 emacs 版本中工作:
(setq tab-width 2)
(setq indent-tabs-mode nil)
我现在正在尝试所有这些:
(setq tab-width 2)
(setq-default tab-width 2)
(setq indent-tabs-mode nil)
(setq-default indent-tabs-mode nil)
(setq indent-line-function 'insert-tab)
(setq tab-stop-list (number-sequence 2 400 2))
现在我发现该选项卡正在缩进到该行中的第一个空白块之后
this is my first line
second line starts here
我不知道如何让它变得简单
this is my first line
second line starts here
也许问题是我的配置?我已经在我自己的用户主目录中安装了这个新版本的 emacs - 它不是系统范围的 emacs 版本。