Skip to content

Commit

Permalink
editor/format: never prompt for formatter on init
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed May 22, 2021
1 parent 3ff8ff3 commit 31ca03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/editor/format/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 31ca03c

Please sign in to comment.