summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 22:54:33 +0200
committerAlan Pearce2017-06-18 22:55:43 +0200
commitbe734c82225941ee0a89c39807ab26148b793a36 (patch)
tree49b1ba0bb853e3aecb6f5ce1fcb8d5ed750a3a23 /emacs
parent904e91bab4fa9e27dc444cec1b23b93732f4db62 (diff)
downloaddotfiles-be734c82225941ee0a89c39807ab26148b793a36.tar.lz
dotfiles-be734c82225941ee0a89c39807ab26148b793a36.tar.zst
dotfiles-be734c82225941ee0a89c39807ab26148b793a36.zip
Emacs: Use web-mode for nunjucks.njk templates
Diffstat (limited to 'emacs')
-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 66793e7..7aeb216 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