[emacs] Change yes or no prompt to y or n

This commit is contained in:
Correl Roush 2015-04-19 01:16:40 -04:00
parent a85988153e
commit 585ba7104f

View file

@ -681,6 +681,13 @@ https://github.com/bbatsov/prelude
(kill-new filename) (kill-new filename)
(message "Copied buffer file name '%s' to the clipboard." filename)))) (message "Copied buffer file name '%s' to the clipboard." filename))))
#+end_src #+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 * Custom settings
Store options set via =customize-*= in a separate file (Emacs stores Store options set via =customize-*= in a separate file (Emacs stores
them in =init.el= by default). them in =init.el= by default).