Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何使用nxhtml配置Emacs(V23)以遵循Kohana编码标准?_Php_Emacs_Nxhtml - Fatal编程技术网

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

Php 如何使用nxhtml配置Emacs(V23)以遵循Kohana编码标准?,php,emacs,nxhtml,Php,Emacs,Nxhtml,我正在尝试配置Emacsv23以遵循PHP的Kohana编码标准。我正在使用带有nxhtml插件的Emacs 我可以看到在缓冲区中缩进制表符模式被设置为t,但是当我按tab键缩进代码时,我看到两个空格被插入而不是制表符 有什么不对劲吗 下面是my.emacs的内容: (server-start) ;;php mode (add-hook 'nxhtml-mumamo-mode-hook (lambda () (setq indent-tabs-mode t)

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

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

有什么不对劲吗

下面是my.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")

在您的.emacs中,应该执行以下操作:

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

现在,这是穆马莫的一个问题。

我遇到了同样的问题;我在nXhtml网站上发布了一个问题(包含更多细节)。如果我得到答案,我当然会把它贴在这里。。。