all repos — nixfiles @ be734c82225941ee0a89c39807ab26148b793a36

System and user configuration, managed by nix and home-manager

Emacs: Use web-mode for nunjucks.njk templates
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 22:54:33 +0200
commit

be734c82225941ee0a89c39807ab26148b793a36

parent

904e91bab4fa9e27dc444cec1b23b93732f4db62

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2276,7 +2276,8 @@ (use-package web-mode   :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