From 63f28fafe4a471fb6cd88f5ebe562d7d15083d3d Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:55:48 -0400 Subject: Replace yes/no prompts with y/n --- init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 1b2ac9d..b6a1837 100644 --- a/init.el +++ b/init.el @@ -92,3 +92,15 @@ ;; Fix the keybinds for the ESC key (global-set-key (kbd "") 'mm/keyboard-escape-quit-keep-windows) (global-unset-key (kbd "C-x ESC ESC")) + + +;; --------------------------------- +;; Replace yes/no prompts with y/n +;; ------------------------------- +;; It's too much to ask for me to +;; type 3 whole letters to confirm +;; something. I demand to only have +;; to press a single key. +;; --------------------------------- + +(defalias 'yes-or-no-p 'y-or-n-p) -- cgit v1.2.3