diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-23 13:54:08 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-11-23 13:56:31 +0100 |
commit | 611f145a4ab864e13474833262ba4c0659e7e542 (patch) | |
tree | 8d6a38137ec5e6e117e28d2fe173d8b6f723ded9 /.dir-locals.el | |
parent | 0e27578e3528f6dc95a0ae8801e1972b3fdc1766 (diff) | |
download | searxng-611f145a4ab864e13474833262ba4c0659e7e542.tar.gz searxng-611f145a4ab864e13474833262ba4c0659e7e542.zip |
[emacs] .dir-locals.el: use jinja2-mode to format html files
The jinja2-mode [1] can be installed from melpa [2]::
M-x package-install / jinja2-mode
[1] https://github.com/paradoxxxzero/jinja2-mode
[2] https://melpa.org/#/jinja2-mode
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index f67ab4714..68614b2d7 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -51,6 +51,8 @@ (indent-tabs-mode . nil) (eval . (progn + (add-to-list 'auto-mode-alist '("\\.html\\'" . jinja2-mode)) + ;; project root folder is where the `.dir-locals.el' is located (setq-local prj-root (locate-dominating-file default-directory ".dir-locals.el")) |