Emacs: Use web-mode for nunjucks.njk templates
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 22:54:33 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/init.org → emacs/.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