Fix #3555: jinja2-mode reindenting on save
This commit is contained in:
parent
2cedf150ec
commit
576eb40b50
1 changed files with 7 additions and 1 deletions
|
@ -17,7 +17,13 @@
|
|||
(set-evil-initial-state! '(ansible-doc-module-mode) 'emacs))
|
||||
|
||||
(use-package! jinja2-mode
|
||||
:mode "\\.j2$")
|
||||
:mode "\\.j2$"
|
||||
:config
|
||||
;; The default behavior is to reindent the whole buffer on save. This is
|
||||
;; disruptive and imposing. There are indentation commands available; the user
|
||||
;; can decide when they want their code reindented.
|
||||
(add-hook! 'jinja2-mode-hook
|
||||
(remove-hook 'after-save-hook 'jinja2-indent-buffer t)))
|
||||
|
||||
(def-project-mode! +ansible-yaml-mode
|
||||
:modes '(yaml-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue