From 9ba7912df7f35524ba32d8222164a8430163f659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 6 Nov 2018 20:54:20 -0500 Subject: 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 --- lisp/init-mmm-mode.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lisp/init-mmm-mode.el (limited to 'lisp/init-mmm-mode.el') 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) -- cgit v1.2.3