Merge pull request #536 from return42/jinja2-mode.el

[emacs] .dir-locals.el: use jinja2-mode to format html files
This commit is contained in:
Markus Heiser 2021-11-23 14:05:01 +01:00 committed by GitHub
commit fbd8afb93d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,8 @@
(indent-tabs-mode . nil) (indent-tabs-mode . nil)
(eval . (progn (eval . (progn
(add-to-list 'auto-mode-alist '("\\.html\\'" . jinja2-mode))
;; project root folder is where the `.dir-locals.el' is located ;; project root folder is where the `.dir-locals.el' is located
(setq-local prj-root (setq-local prj-root
(locate-dominating-file default-directory ".dir-locals.el")) (locate-dominating-file default-directory ".dir-locals.el"))