From 332a091e42f6ce86aac583200dbf186231d55ff0 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 1 Dec 2019 11:45:22 -0500 Subject: [PATCH] Add jinja2 to web-mode mode hooks --- emacs/init.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/init.org b/emacs/init.org index 4beeed7..7880d88 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1465,8 +1465,11 @@ Some formatting stuff: :mode (("\\.html\\'" . web-mode) ("\\.js\\'" . web-mode) ("\\.jsx\\'" . web-mode) - ("\\.mako\\'" . web-mode)) + ("\\.mako\\'" . web-mode) + ("\\.jinja2\\'" . web-mode)) :config + (setq web-mode-engines-alist + '(("django" . "\\.jinja2\\'"))) (add-hook 'web-mode-hook (lambda () (when (equal web-mode-content-type "javascript")