mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 19:19:28 +00:00
12 lines
355 B
EmacsLisp
12 lines
355 B
EmacsLisp
;; PHP Mode
|
|
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
|
|
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
|
|
|
|
(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 '+))
|
|
|
|
(add-hook 'php-mode-hook 'my-php-mode-hook)
|