2011-09-07 14 views
3

我正在嘗試配置Emacs v23以遵循PHP的Kohana編碼標準。我用nxhtml插件使用Emacs。如何使用nxhtml配置Emacs(v 23)以遵循Kohana編碼標準?

我可以看到indent-tabs-mode在緩衝區中設置爲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") 
+0

我遇到了同樣的問題;我在nXhtml網站-http://answers.launchpad.net/nxhtml/+question/181005上發佈了一個問題(有更多詳細信息)。如果我得到答案,當然我會在這裏發佈... –

回答

1

這是一個mumamo bug,現在fixed

0

在你的.emacs應該做的工作:

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