Add jinja2 to web-mode mode hooks

This commit is contained in:
Jeremy Dormitzer 2019-12-01 11:45:22 -05:00
parent 3f57a07136
commit 332a091e42

View File

@ -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")