Emacs/Aquamacs php模式和选项卡缩进
我无法让我的Aquamacs 2.4(Emacs)遵循Kohana风格: php模式下的Emacs将选项卡替换为空格。我想禁用此功能,并在缩进中使用制表符 我尝试了许多类似的解决方案,但没有一个对我有效:Emacs/Aquamacs php模式和选项卡缩进,php,emacs,indentation,aquamacs,Php,Emacs,Indentation,Aquamacs,我无法让我的Aquamacs 2.4(Emacs)遵循Kohana风格: php模式下的Emacs将选项卡替换为空格。我想禁用此功能,并在缩进中使用制表符 我尝试了许多类似的解决方案,但没有一个对我有效: (require 'php-mode) (setq php-mode-force-pear t) (add-hook 'php-mode-hook '(lambda () (setq indent-tabs-mode t) (setq tab-w
(require 'php-mode)
(setq php-mode-force-pear t)
(add-hook 'php-mode-hook
'(lambda ()
(setq indent-tabs-mode t)
(setq tab-width 4)
(setq c-basic-offset 4)))
谢谢你的帮助
谢谢,
David如果要查找缩进选项卡和对齐空格,则可以使用SmartTabs。
(
-->
是一个选项卡,
是一个空格)
看到和
有关安装详细信息,请参阅
function example()
{
--->command();
--->if ($condition)
--->{
--->--->$arr = array('One',
--->--->.............'Two'); // Tabs for indent, spaces for alignment.
--->--->other_command();
--->}
}