aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2017-04-02 20:49:38 -0700
committerGravatar Tom Willemse2017-04-02 20:49:38 -0700
commit8ee052fb3ac9fc61c08c662f2a7d0b0c3839d4c2 (patch)
tree055573ec9eee3c083aed3568ee6d413f45bc3cd1 /emacs/.emacs.d/init.org
parent72160a70bbc4dcfcb6ef6466abe20e037c987f8e (diff)
downloadnew-dotfiles-8ee052fb3ac9fc61c08c662f2a7d0b0c3839d4c2.tar.gz
new-dotfiles-8ee052fb3ac9fc61c08c662f2a7d0b0c3839d4c2.zip
Add Emacs config for C-z and y-or-n-p
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org25
1 files changed, 25 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 7a5714b..68bc60a 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -336,6 +336,31 @@ Computing Environment".
(setq-default truncate-lines t)
#+END_SRC
+*** Suspend
+
+ The =C-z= key in a terminal suspends the current application to
+ the background and lets you do other things on the command line
+ without having to fully close the application. In GUI Emacs this
+ minimizes the current frame. I have no place for it to minimize to
+ (no task bar or anything), so this just freezes my frame. To
+ prevent this from happening I unbind the =C-z= key.
+
+ #+BEGIN_SRC emacs-lisp
+ (global-unset-key (kbd "C-z"))
+ #+END_SRC
+
+*** Don't ask for yes or no
+
+ One of the more annoying things can be when Emacs starts asking
+ for confirmation and you have to type in =yes= or =no=. I get that
+ this is to prevent you from accidentally performing an action, but
+ just =y= or =n= has since 2008 not made me accidentally perform
+ any action I didn't mean to.
+
+ #+BEGIN_SRC emacs-lisp
+ (defalias 'yes-or-no-p 'y-or-n-p)
+ #+END_SRC
+
* Theme
Load my personal theme. I sometimes change it to a different theme,