summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 22:54:33 +0200
committerAlan Pearce2017-06-18 22:55:43 +0200
commitbe734c82225941ee0a89c39807ab26148b793a36 (patch)
tree49b1ba0bb853e3aecb6f5ce1fcb8d5ed750a3a23
parent904e91bab4fa9e27dc444cec1b23b93732f4db62 (diff)
downloadnixfiles-be734c82225941ee0a89c39807ab26148b793a36.tar.lz
nixfiles-be734c82225941ee0a89c39807ab26148b793a36.tar.zst
nixfiles-be734c82225941ee0a89c39807ab26148b793a36.zip
Emacs: Use web-mode for nunjucks.njk templates
-rw-r--r--emacs/.emacs.d/init.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 66793e78..7aeb2163 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -2276,7 +2276,8 @@ of them as well.
   :mode (("/views/.*\\.php\\'" . web-mode)
          ("\\.html\\'" . web-mode)
          ("/templates/.*\\.php\\'" . web-mode)
-         ("\\.ejs\\'" . web-mode))
+         ("\\.ejs\\'" . web-mode)
+         ("\\.njk\\'" . web-mode))
   :config (progn
             (setq web-mode-code-indent-offset 2
                   web-mode-css-indent-offset 2