Overwrite yes-or-no-p instead of advise it
+ Some snippets libraries assume this instead of the advise, causing errors. + Advising a C function may have implications when its uses are natively compiled.
This commit is contained in:
parent
8ffc9ba429
commit
427d38008b
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
max-mini-window-height 0.15)
|
max-mini-window-height 0.15)
|
||||||
|
|
||||||
;; Typing yes/no is obnoxious when y/n will do
|
;; Typing yes/no is obnoxious when y/n will do
|
||||||
(advice-add #'yes-or-no-p :override #'y-or-n-p)
|
(fset #'yes-or-no-p #'y-or-n-p)
|
||||||
|
|
||||||
;; Try really hard to keep the cursor from getting stuck in the read-only prompt
|
;; Try really hard to keep the cursor from getting stuck in the read-only prompt
|
||||||
;; portion of the minibuffer.
|
;; portion of the minibuffer.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue