如何使用nxhtml配置Emacs (v23)以遵循Kohana编码标准


How to configure Emacs (v 23) with nxhtml to follow Kohana coding standards?

我正在尝试配置Emacs v23以遵循PHP的Kohana编码标准。我正在使用Emacs与nxhtml插件。

我可以看到缓冲区中的缩进-制表符模式被设置为t,但是当我按tab键缩进代码时,我看到插入了两个空格,而不是tab字符。

怎么了?

这里是我的。emacs的内容:

(server-start)
;;php mode
(add-hook 'nxhtml-mumamo-mode-hook
        (lambda ()
        (setq indent-tabs-mode t)
        ))
(load "/home/sabya/install/emacs-stuff/nxhtml/autostart.el")

这是mumamo的一个bug,现在已经修复了

在您的.emacs中应该完成这项工作:

(setq c-default-style "bsd"
      c-basic-offset 4)