From eeb30ae2d0d48cafc8829e02ac4755e078628e37 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Thu, 13 Jun 2024 21:19:03 +0000 Subject: Replace yes-or-no-p alias with custom option --- emacs/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0