aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/init-mmm-mode.el
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-11-12 10:59:45 -0500
committerJesús <heckyel@hyperbola.info>2018-11-12 10:59:45 -0500
commit60be10712742af355dec9cd6a93764a49a227af6 (patch)
tree1940433691f34abf929f26727042fda7a607a451 /lisp/init-mmm-mode.el
parent9bcab5d2625e9e14344bb4dfee74a668ec68055c (diff)
downloademacs-personal-60be10712742af355dec9cd6a93764a49a227af6.tar.lz
emacs-personal-60be10712742af355dec9cd6a93764a49a227af6.tar.xz
emacs-personal-60be10712742af355dec9cd6a93764a49a227af6.zip
Remove mmm-mode, php-mode :: only web-mode
Working in PHP languages with HTML is a daily task. In the first instance I tried to combine its syntax with multi-web-mode but it consumed a lot of resources. In the second instance I made the language reader using mmm-mode, reading php-mode in web mode. However this has not been enough because the color problems between modes produce bugs. Now only the web-mode for PHP works, and I have managed to activate PHP flycheck for web-mode.
Diffstat (limited to 'lisp/init-mmm-mode.el')
-rw-r--r--lisp/init-mmm-mode.el29
1 files changed, 0 insertions, 29 deletions
diff --git a/lisp/init-mmm-mode.el b/lisp/init-mmm-mode.el
deleted file mode 100644
index 8db0a55..0000000
--- a/lisp/init-mmm-mode.el
+++ /dev/null
@@ -1,29 +0,0 @@
-(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-group 'html-php
- '((html-php-output
- :submode php-mode
- :face mmm-output-submode-face
- :front "<\\?php *echo "
- :back "\\(\\?>\\|\\'\\)"
- :include-front t
- :front-offset 5
- :insert ((?e php-echo nil @ "<?php" @ " echo " _ " " @ "?>" @))
- )
- (html-php-code
- :submode php-mode
- :face mmm-code-submode-face
- :front "<\\?\\(php\\)?"
- :back "\\(\\?>\\|\\'\\)"
- :insert ((?p php-section nil @ "<?php" @ " " _ " " @ "?>" @)
- (?b php-block nil @ "<?php" @ "\n" _ "\n" @ "?>" @))
- )))
-
- )
-
-(provide 'init-mmm-mode)