From 31ca03c7a0b70c75379470a9f27135b965e39729 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 22 May 2021 14:21:00 -0400 Subject: [PATCH] editor/format: never prompt for formatter on init --- modules/editor/format/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/format/config.el b/modules/editor/format/config.el index 18b23ede15a..870a431929b 100644 --- a/modules/editor/format/config.el +++ b/modules/editor/format/config.el @@ -45,7 +45,8 @@ This is controlled by `+format-on-save-enabled-modes'." (memq major-mode (cdr +format-on-save-enabled-modes))) ((not (memq major-mode +format-on-save-enabled-modes)))) (not (require 'format-all nil t)) - (null (car (format-all--probe))) + (let (current-prefix-arg) ; never prompt + (null (car (format-all--probe)))) (+format-enable-on-save-h))) (when (featurep! +onsave)