|
From: | Davi Leal |
Subject: | Re: Indentation for emacs |
Date: | Wed, 9 May 2007 20:57:04 +0200 |
User-agent: | KMail/1.9.5 |
I am experimenting with the below Lisp code. You could add it to your .emacs Reference: http://www.moxleystratton.com/article/dot-emacs ; Moxley's php-mode customizations (require 'php-mode) (defun my-php-mode-common-hook () ;; my customizations for php-mode (setq tab-width 8) (setq c-basic-offset 8) (c-set-offset 'topmost-intro-cont 8) (c-set-offset 'class-open 0) (c-set-offset 'inline-open 0) (c-set-offset 'substatement-open 0) (c-set-offset 'arglist-intro '+) ) (defun pear-php-mode-hook () (setq tab-width 8 c-basic-offset 8 indent-tabs-mode (string-match "\.php$" (buffer-file-name)))) (add-hook 'php-mode-hook 'pear-php-mode-hook)
[Prev in Thread] | Current Thread | [Next in Thread] |