Add jinja2 to web-mode mode hooks
This commit is contained in:
parent
3f57a07136
commit
332a091e42
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user