refactor: replace yes-or-no-p advice w/ use-short-answers
This option was introduced in 28.1.
This commit is contained in:
parent
866e1b32bf
commit
76e6dcd550
1 changed files with 4 additions and 1 deletions
|
@ -307,7 +307,10 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
|||
(setq resize-mini-windows 'grow-only)
|
||||
|
||||
;; Typing yes/no is obnoxious when y/n will do
|
||||
(advice-add #'yes-or-no-p :override #'y-or-n-p)
|
||||
(if EMACS28+
|
||||
(setq use-short-answers t)
|
||||
;; DEPRECATED Remove when we drop 27.x support
|
||||
(advice-add #'yes-or-no-p :override #'y-or-n-p))
|
||||
|
||||
;; Try to keep the cursor out of the read-only portions of the minibuffer.
|
||||
(setq minibuffer-prompt-properties '(read-only t intangible t cursor-intangible t face minibuffer-prompt))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue