Allow formatter in some "special" buffers

Like org-src-edit and scratch buffers.

Fixes #3905
Closes #3915
This commit is contained in:
Henrik Lissner 2020-11-03 21:26:07 -05:00
parent be4fe4484a
commit dec573c4e5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -104,7 +104,7 @@ Stolen shamelessly from go-mode"
Prompts for a formatter if universal arg is set." Prompts for a formatter if universal arg is set."
(cond ((or (eq +format-with :none) (cond ((or (eq +format-with :none)
(doom-temp-buffer-p (current-buffer)) (doom-temp-buffer-p (current-buffer))
(doom-special-buffer-p (current-buffer))) (derived-mode-p 'special-mode))
(list nil nil)) (list nil nil))
(current-prefix-arg (current-prefix-arg
(list (or (+format-completing-read) (list (or (+format-completing-read)