【发布时间】:2013-09-24 07:58:57
【问题描述】:
我尝试将缩进从 4 个空格更改为 2 个空格(我需要用这种样式编写代码)。
我尝试使用 php 代码在缓冲区中对此进行评估:
(setq tab-width 2)
或
(setq-default tab-width 2)
但它不起作用,当我输入 TAB 时,我得到了 4 个空格。
【问题讨论】:
标签: emacs indentation php-mode
我尝试将缩进从 4 个空格更改为 2 个空格(我需要用这种样式编写代码)。
我尝试使用 php 代码在缓冲区中对此进行评估:
(setq tab-width 2)
或
(setq-default tab-width 2)
但它不起作用,当我输入 TAB 时,我得到了 4 个空格。
【问题讨论】:
标签: emacs indentation php-mode
好的,找到了:
(setq c-basic-offset 2)
【讨论】:
PHP/l。