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:
Henrik Lissner 2020-11-16 19:29:41 -05:00
parent 8ffc9ba429
commit 427d38008b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -349,7 +349,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
max-mini-window-height 0.15)
;; 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
;; portion of the minibuffer.