From 585ba7104f6c774d372493ae53f9aec3d0f484c0 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sun, 19 Apr 2015 01:16:40 -0400 Subject: [PATCH] [emacs] Change yes or no prompt to y or n --- .emacs.d/emacs.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index 979370f..7bf3757 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -681,6 +681,13 @@ https://github.com/bbatsov/prelude (kill-new filename) (message "Copied buffer file name '%s' to the clipboard." filename)))) #+end_src +** Prompt for 'y or n' instead of 'yes or no' +Because typing out "yes" and "no" is irritating. + +#+name: other +#+BEGIN_SRC emacs-lisp + (defalias 'yes-or-no-p #'y-or-n-p) +#+END_SRC * Custom settings Store options set via =customize-*= in a separate file (Emacs stores them in =init.el= by default).