fix: use advise-add instead of fset to override yes-or-no-p
So that reverting it becomes easier.
This commit is contained in:
parent
d49693da91
commit
d67060eda4
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
(setq resize-mini-windows 'grow-only)
|
(setq resize-mini-windows 'grow-only)
|
||||||
|
|
||||||
;; Typing yes/no is obnoxious when y/n will do
|
;; Typing yes/no is obnoxious when y/n will do
|
||||||
(fset #'yes-or-no-p #'y-or-n-p)
|
(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.
|
;; 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))
|
(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