Add read-answer-short

This commit is contained in:
James Cherti
2025-02-14 07:35:14 -05:00
parent 8cd2b2cb83
commit f39578acf3

View File

@@ -63,6 +63,7 @@
(setq idle-update-delay 1.0) (setq idle-update-delay 1.0)
;; Allow for shorter responses: "y" for yes and "n" for no. ;; Allow for shorter responses: "y" for yes and "n" for no.
(setq read-answer-short t)
(if (boundp 'use-short-answers) (if (boundp 'use-short-answers)
(setq use-short-answers t) (setq use-short-answers t)
(advice-add #'yes-or-no-p :override #'y-or-n-p)) (advice-add #'yes-or-no-p :override #'y-or-n-p))