docs(emacs basic-config): update a setting for Emacs 29
This commit is contained in:
parent
ca3a48c0cb
commit
0f3dbc0739
@ -177,9 +177,11 @@ don’t want it!
|
|||||||
*** Stay Polite, Emacs!
|
*** Stay Polite, Emacs!
|
||||||
When asking for our opinion on something, Emacs loves asking us to
|
When asking for our opinion on something, Emacs loves asking us to
|
||||||
answer by “yes” or “no”, but *in full*! That’s very rude! Fortunately,
|
answer by “yes” or “no”, but *in full*! That’s very rude! Fortunately,
|
||||||
we can fix this.
|
we can fix this. Note that the configuration changed in Emacs 29.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
(if (version<= emacs-version "28")
|
||||||
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||||
|
(setopt use-short-answers t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
This will make Emacs ask us for either hitting the ~y~ key for “yes”, or
|
This will make Emacs ask us for either hitting the ~y~ key for “yes”, or
|
||||||
|
Loading…
Reference in New Issue
Block a user