emacs-personal/lisp/init-mmm-mode.el
Jesús 9ba7912df7
Added support for PHP + HTML combined with the help of mmm-mode
Note: remember that working with PHP and combined HTML isn't a best practice
2018-11-06 20:54:20 -05:00

17 lines
368 B
EmacsLisp

(use-package mmm-mode
:config
(setq mmm-global-mode 'maybe)
(mmm-add-mode-ext-class nil "\\.php?\\'" 'html-php)
(mmm-add-mode-ext-class nil "\\.ctp?\\'" 'html-php)
(set-face-background 'mmm-default-submode-face nil)
(mmm-add-classes
'((html-php
:submode php-mode
:front "<\\?\\(php\\)?"
:back "\\?>")))
)
(provide 'init-mmm-mode)