fix: use advise-add instead of fset to override yes-or-no-p

So that reverting it becomes easier.
This commit is contained in:
Daanturo 2021-11-17 18:31:36 +07:00 committed by Henrik Lissner
parent d49693da91
commit d67060eda4

View file

@ -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))