如何在Emacs中使用强制选项的move-to-column命令,使其插入空格而不是制表符和空格。

3

当使用 (move-to-column col t) 时,如果列参数大于 end-of-line ,Emacs 会插入一些空格和制表符的组合,具体情况取决于 col 是否在制表位上结束。

我该如何让它只插入空格呢?

1个回答

2
您需要将indent-tabs-mode设置为nil,可以使用setq-default来进行设置:
(setq-default indent-tabs-mode nil)

或者使用自定义选项:

(custom-set-variables '(indent-tabs-mode nil))

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接