开发者

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

I am trying to configure Emacs v23 to follow Kohana coding standards for PHP. I am using Emacs with nxhtml plugin.

I can see the indent-tabs-mode is set to t in the buffer, but when I press tab to indent the code, I see two spaces are inserted not the TAB character.

What could be wrong?

Here the content of my .emacs:

(server-start)
;;php mode
(add-hook 'nxhtml-mumamo-mode-hook
        (lambda ()
        (setq indent-tabs-mode t)
        ))

(load 开发者_如何学Python"/home/sabya/install/emacs-stuff/nxhtml/autostart.el")


This was a bug in mumamo, now fixed.


In your .emacs that should do the job:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜