diff options
author | Jesús <heckyel@hyperbola.info> | 2018-11-02 15:52:59 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2018-11-02 15:52:59 -0500 |
commit | 0479eaa621096911f81f11d46c5e6f54d192b1ec (patch) | |
tree | dac3489d4476a50ed1625e98441e401df8e5c047 /lisp | |
parent | e28ea4e2df48b305606a0d4bd146d648304cce96 (diff) | |
download | emacs-personal-0479eaa621096911f81f11d46c5e6f54d192b1ec.tar.lz emacs-personal-0479eaa621096911f81f11d46c5e6f54d192b1ec.tar.xz emacs-personal-0479eaa621096911f81f11d46c5e6f54d192b1ec.zip |
multiple major mode support for web editing in Emacs
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-multi-web.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/init-multi-web.el b/lisp/init-multi-web.el new file mode 100644 index 0000000..e330a65 --- /dev/null +++ b/lisp/init-multi-web.el @@ -0,0 +1,10 @@ +(use-package multi-web-mode + :config + (setq mweb-default-major-mode 'html-mode) + (setq mweb-tags '((php-mode "<\\?php\\|<\\? \\|<\\?=" "\\?>") + (js-mode "<script +\\(type=\"text/javascript\"\\|language=\"javascript\"\\)[^>]*>" "</script>") + (css-mode "<style +type=\"text/css\"[^>]*>" "</style>"))) + (setq mweb-filename-extensions '("php" "htm" "html" "ctp" "phtml" "php4" "php5")) + (multi-web-global-mode 1)) + +(provide 'init-multi-web) |