summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2015-05-11 16:55:43 +0200
committerAlan Pearce2015-05-11 16:55:43 +0200
commitba072244ef31334ba07db9d4f646f8149a660fcc (patch)
tree2cb19a08805abfe6e85536aacc7346b14f1f38dc /tag-emacs
parentc8f84ed394e4773d8bc6d499368708db0ad1570a (diff)
downloaddotfiles-ba072244ef31334ba07db9d4f646f8149a660fcc.tar.lz
dotfiles-ba072244ef31334ba07db9d4f646f8149a660fcc.tar.zst
dotfiles-ba072244ef31334ba07db9d4f646f8149a660fcc.zip
Emacs: Open .ejs files in web-mode
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 7275e85..cdb8500 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1443,7 +1443,8 @@ symbol, not word, as I need this for programming the most."
 (req-package web-mode
   :mode (("/views/.*\\.php\\'" . web-mode)
          ("/layouts/.*\\.html\\'" . web-mode)
-         ("/templates/.*\\.php\\'" . web-mode))
+         ("/templates/.*\\.php\\'" . web-mode)
+         ("\\.ejs\\'" . web-mode))
   :config (setq web-mode-code-indent-offset 4
                 web-mode-css-indent-offset 4
                 web-mode-markup-indent-offset 4