mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[emacs] Customize PHP indentation
This commit is contained in:
parent
40f14ed503
commit
2d34efccf0
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@
|
|||
(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))
|
||||
|
||||
(add-hook 'php-mode-hook 'my-php-mode-hook)
|
||||
|
||||
;; Multi-Web-Mode
|
||||
(require 'multi-web-mode)
|
||||
(setq mweb-default-major-mode 'html-mode)
|
||||
|
|
Loading…
Reference in a new issue