From 951b1d7f061583c69671998b2300fa56ecd52370 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Wed, 4 Jan 2023 13:20:47 -0900 Subject: [PATCH] yes-or-no-p and use-short-answers --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 9ca58aa..0840892 100644 --- a/init.el +++ b/init.el @@ -21,9 +21,9 @@ (require 'mitch-defuns) ;; minify yes/no prompts -;; (if (>= (string-to-number emacs-version) 28) -;; (defvar use-short-answers t)) ;; doesn't work -(defalias 'yes-or-no-p 'y-or-n-p) +(if (>= (string-to-number emacs-version) 28) + (defvar use-short-answers t) + (defalias 'yes-or-no-p 'y-or-n-p)) ;; do the things (add-hook 'server-after-make-frame-hook #'mitch/graphical-setup)