diff options
author | Jesús <heckyel@hyperbola.info> | 2018-11-06 20:54:20 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2018-11-06 20:54:20 -0500 |
commit | 9ba7912df7f35524ba32d8222164a8430163f659 (patch) | |
tree | 584c9d0d2fe915c6856c7bcca3ad606b8ff1650a /lisp/init-mmm-mode.el | |
parent | b24078e2fc67c5821e0a2492acc66195370f69d9 (diff) | |
download | emacs-personal-9ba7912df7f35524ba32d8222164a8430163f659.tar.lz emacs-personal-9ba7912df7f35524ba32d8222164a8430163f659.tar.xz emacs-personal-9ba7912df7f35524ba32d8222164a8430163f659.zip |
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
Diffstat (limited to 'lisp/init-mmm-mode.el')
-rw-r--r-- | lisp/init-mmm-mode.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/init-mmm-mode.el b/lisp/init-mmm-mode.el new file mode 100644 index 0000000..75c18e3 --- /dev/null +++ b/lisp/init-mmm-mode.el @@ -0,0 +1,16 @@ +(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) |