我使用 Emacs 作为编辑器。我想将制表符大小设置为四个空格。在我的.emacs文件我有以下内容:
(setq default-tab-width 4)
我也尝试过:
(set-default tab-width 4)
不管怎样,当我打开 emacs 并尝试按 Tab 键时,它会插入两个空格。难道我做错了什么?看起来好像它没有看到我的.emacs file.
任何建议都会很棒!谢谢!
The tab-width
variable doesn't determine the amount of indenting per level, and the TAB key doesn't insert a tab: it indents the current line to the correct indentation level in most language modes.
如果您使用 C、C++ 或 Java(以及其他一些语言,基于cc-mode
),尝试设置c-basic-offset
到 4. 或点击C-c .
并选择另一种缩进样式;也许有一款适合您的口味。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)