From 47a350f65ffcd186970de1bc53fadc37a420162a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Jul 2020 01:59:00 -0400 Subject: [PATCH] jinja2-enable-indent-on-save = nil #3555 --- modules/tools/ansible/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/tools/ansible/config.el b/modules/tools/ansible/config.el index 2b9a8a0ec..27f872822 100644 --- a/modules/tools/ansible/config.el +++ b/modules/tools/ansible/config.el @@ -24,8 +24,7 @@ ;; 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))) + (setq jinja2-enable-indent-on-save nil)) (def-project-mode! +ansible-yaml-mode