diff options
author | Alan Pearce | 2017-06-18 22:54:33 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 22:55:43 +0200 |
commit | be734c82225941ee0a89c39807ab26148b793a36 (patch) | |
tree | 49b1ba0bb853e3aecb6f5ce1fcb8d5ed750a3a23 /emacs | |
parent | 904e91bab4fa9e27dc444cec1b23b93732f4db62 (diff) | |
download | dotfiles-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.org | 3 |
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 |