diff options
Diffstat (limited to '.emacs.d/init.org')
-rw-r--r-- | .emacs.d/init.org | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org index dd15c8a..7f365ee 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -301,6 +301,20 @@ (add-hook 'term-mode-hook #'oni:set-term-keys) #+END_SRC +* Ask for a ~y~ or ~n~, not ~yes~ or ~no~. + + Emacs starts out asking for you to type ~yes~ or ~no~ with most + important questions. It is possible that this is used for such + important questions where accidentally saying ~yes~ when you meant ~no~ + would be catastrophic (or at least could be). However, I've never + (so far) had this problem, and I find it quite tedious to have to + write out ~yes~ or ~no~ and then press {{{kbd(RET)}}}, give me a simple + ~y~ or ~n~ with no {{{kdb(RET)}}} required and I'm quite happy. + + #+BEGIN_SRC emacs-lisp + (defalias 'yes-or-no-p 'y-or-n-p) + #+END_SRC + * Footnotes [fn:1] https://github.com/sabof/svg-mode-line-themes |