dotfiles/.emacs.d/init.d/php.el

13 lines
355 B
EmacsLisp
Raw Normal View History

;; PHP Mode
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
2013-09-25 01:34:30 +00:00
(defun my-php-mode-hook ()
"Customize PHP indentation"
(c-set-offset 'arglist-cont-nonempty 'c-lineup-arglist)
(c-set-offset 'substatement-open 0)
(c-set-offset 'case-label '+))
2013-09-25 01:34:30 +00:00
(add-hook 'php-mode-hook 'my-php-mode-hook)