diff options
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 1 | ||||
-rw-r--r-- | .emacs.d/init.org | 14 |
2 files changed, 14 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 7cfd790..f243daf 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -920,7 +920,6 @@ from myaethon2.core.decorators import ( ;;;; Aliases -(defalias 'yes-or-no-p 'y-or-n-p) (defalias 'dabbrev-expand 'hippie-expand) ;;;; Load path 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 |