From d67060eda49d433022fb886f83d94c6765800c60 Mon Sep 17 00:00:00 2001 From: Daanturo Date: Wed, 17 Nov 2021 18:31:36 +0700 Subject: [PATCH] fix: use advise-add instead of fset to override yes-or-no-p So that reverting it becomes easier. --- core/core-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index a399ba7a0..f6df544a3 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -309,7 +309,7 @@ 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 -(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. (setq minibuffer-prompt-properties '(read-only t intangible t cursor-intangible t face minibuffer-prompt))