summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-06-13 21:19:03 +0000
committernoa@gaiwan.org2024-06-13 21:19:03 +0000
commiteeb30ae2d0d48cafc8829e02ac4755e078628e37 (patch)
tree621c2aa0e53b62263cb32bb5b298c1351969f43a
parentb40d099576308ad1213ea29a9a2d926a57a58cec (diff)
Replace yes-or-no-p alias with custom option
-rw-r--r--emacs/init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index cf42280..be53300 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -831,7 +831,11 @@ and when JID is not in `jabber-activity-banned'."
 (setenv "PAGER" "cat")
 (setenv "TERM" "dumb")
 (setenv "GPG_AGENT_INFO" nil)
-(defalias 'yes-or-no-p 'y-or-n-p)
+
+;; The former means that when given a list of choices, we can use single character abbreviations to answer.  The latter is a fancy way of defaliasing yes-or-no-p to y-or-n-p.
+(setopt read-answer-short t)
+(setopt use-short-answers t)
+
 (setq disabled-command-function nil)
 (setopt custom-file (make-temp-file "custom"))
 (setq inhibit-startup-echo-area-message "noa")  ;; #userfreedom