aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-09 19:55:48 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-04-09 19:55:48 -0400
commit63f28fafe4a471fb6cd88f5ebe562d7d15083d3d (patch)
tree831f2a38fb1bf010003c064c220d817045ef63a7
parentFix ESC key behavior (diff)
downloadmmosmacs-63f28fafe4a471fb6cd88f5ebe562d7d15083d3d.tar.gz
mmosmacs-63f28fafe4a471fb6cd88f5ebe562d7d15083d3d.tar.bz2
mmosmacs-63f28fafe4a471fb6cd88f5ebe562d7d15083d3d.zip
Replace yes/no prompts with y/n
-rw-r--r--init.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.el b/init.el
index 1b2ac9d..b6a1837 100644
--- a/init.el
+++ b/init.el
@@ -92,3 +92,15 @@
92;; Fix the keybinds for the ESC key 92;; Fix the keybinds for the ESC key
93(global-set-key (kbd "<escape>") 'mm/keyboard-escape-quit-keep-windows) 93(global-set-key (kbd "<escape>") 'mm/keyboard-escape-quit-keep-windows)
94(global-unset-key (kbd "C-x ESC ESC")) 94(global-unset-key (kbd "C-x ESC ESC"))
95
96
97;; ---------------------------------
98;; Replace yes/no prompts with y/n
99;; -------------------------------
100;; It's too much to ask for me to
101;; type 3 whole letters to confirm
102;; something. I demand to only have
103;; to press a single key.
104;; ---------------------------------
105
106(defalias 'yes-or-no-p 'y-or-n-p)