我不能让我的Aquamacs2.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-width 4)
(setq c-basic-offset 4)))感谢您的帮助。
谢谢,大卫
发布于 2012-08-28 18:05:32
如果您正在寻找用于缩进的制表符和用于对齐的空格,那么您可以使用SmartTabs。
(--->是制表符,.是空格)
function example()
{
--->command();
--->if ($condition)
--->{
--->--->$arr = array('One',
--->--->.............'Two'); // Tabs for indent, spaces for alignment.
--->--->other_command();
--->}
}有关安装的详细信息,请参阅emacswiki和github。
https://stackoverflow.com/questions/8161112
复制相似问题