diff options
author | noa@gaiwan.org | 2024-06-13 21:19:03 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-13 21:19:03 +0000 |
commit | eeb30ae2d0d48cafc8829e02ac4755e078628e37 (patch) | |
tree | 621c2aa0e53b62263cb32bb5b298c1351969f43a | |
parent | b40d099576308ad1213ea29a9a2d926a57a58cec (diff) |
Replace yes-or-no-p alias with custom option
-rw-r--r-- | emacs/init.el | 6 |
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 |