mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 19:19:28 +00:00
13 lines
492 B
EmacsLisp
13 lines
492 B
EmacsLisp
|
;; PHP Mode
|
||
|
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
|
||
|
(add-to-list 'auto-mode-alist '("\\.inc$" . php-mode))
|
||
|
|
||
|
;; Multi-Web-Mode
|
||
|
(require 'multi-web-mode)
|
||
|
(setq mweb-default-major-mode 'html-mode)
|
||
|
(setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>")
|
||
|
(js-mode "<script[^>]*>" "</script>")
|
||
|
(css-mode "<style[^>]*>" "</style>")))
|
||
|
(setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5"))
|
||
|
(multi-web-global-mode 1)
|