Allow formatter in some "special" buffers
Like org-src-edit and scratch buffers. Fixes #3905 Closes #3915
This commit is contained in:
parent
be4fe4484a
commit
dec573c4e5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue