3

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 "/home/sabya/install/emacs-stuff/nxhtml/autostart.el")
Sabya
  • 11,534
  • 17
  • 67
  • 94
  • I ran into the same problem; I posted a question (with some more details) on the nXhtml site—https://answers.launchpad.net/nxhtml/+question/181005. If I get an answer, of course I'll post it here... – Nicholas Riley Dec 05 '11 at 22:48

2 Answers2

1

This was a bug in mumamo, now fixed.

Nicholas Riley
  • 43,532
  • 6
  • 101
  • 124
0

In your .emacs that should do the job:

(setq c-default-style "bsd"
      c-basic-offset 4)
Florian
  • 76
  • 5