summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-04-19 23:20:09 +0200
committerGravatar Tom Willemse2014-04-19 23:20:09 +0200
commit63c5b96d1e76a670950975cfec64cceb2fc9c5d9 (patch)
tree7649416b0c82b5f553c11ef261248b21d3fe4bc9
parent9d04002ca5947697c3c3eae435a935d3fee65987 (diff)
downloademacs-63c5b96d1e76a670950975cfec64cceb2fc9c5d9.tar.gz
emacs-63c5b96d1e76a670950975cfec64cceb2fc9c5d9.zip
Move yes-or-no-p setting to init.org
-rw-r--r--.emacs.d/init.el1
-rw-r--r--.emacs.d/init.org14
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