docs(emacs basic-config): update a setting for Emacs 29

This commit is contained in:
Lucien Cartier-Tilet 2024-01-09 18:50:52 +01:00
parent ca3a48c0cb
commit 0f3dbc0739
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -177,9 +177,11 @@ dont want it!
*** Stay Polite, Emacs!
When asking for our opinion on something, Emacs loves asking us to
answer by “yes” or “no”, but *in full*! Thats very rude! Fortunately,
we can fix this.
we can fix this. Note that the configuration changed in Emacs 29.
#+begin_src emacs-lisp
(if (version<= emacs-version "28")
(defalias 'yes-or-no-p 'y-or-n-p)
(setopt use-short-answers t))
#+end_src
This will make Emacs ask us for either hitting the ~y~ key for “yes”, or