【发布时间】:2010-04-19 15:17:22
【问题描述】:
我正在寻找c-indent-level 和ruby-indent-level 的等价物,用于asm-mode。也就是说,我想强制缩进为 4 个空格,并且我希望将它们替换为空格。
我所看到的告诉我它不存在 asm 模式。有人可以告诉我这是错的吗?
我也试过这个:Set 4 Space Indent in Emacs in Text Mode,没有 av。
我试过了:
(setq tab-width 4)
(setq indent-line-function 'insert-tab)
(setq asm-indent-level 4)
但是这可行:
(custom-set-variables
'(tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120))))
但我想知道是否有办法只为asm-mode 定义它。如果我想为其他模式保留默认选项卡行为怎么办?
【问题讨论】:
标签: emacs indentation