summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2014-06-06 15:46:16 +0100
committerAlan Pearce2014-06-06 15:46:59 +0100
commit04ecc495b78f33adf37967198e7b030d50f2b869 (patch)
treeae556a17ff5ae2ddd32723c765561241989b82c1 /tag-emacs/emacs.d/init.el
parentd7e339ebccbc364046373e01c660527fa781ca79 (diff)
downloadnixfiles-04ecc495b78f33adf37967198e7b030d50f2b869.tar.lz
nixfiles-04ecc495b78f33adf37967198e7b030d50f2b869.tar.zst
nixfiles-04ecc495b78f33adf37967198e7b030d50f2b869.zip
Emacs: open twig files in web-mode
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index e8f8fb25..39710324 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -965,6 +965,7 @@
 
 (req-package web-mode
   :mode (("/views/.*\\.php\\'" . web-mode)
+         ("\\.html\\.twig\\'" . web-mode)
          ("/templates/.*\\.php\\'" . web-mode))
   :config (setq web-mode-code-indent-offset 4
                 web-mode-css-indent-offset 4