From 8ee052fb3ac9fc61c08c662f2a7d0b0c3839d4c2 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 2 Apr 2017 20:49:38 -0700 Subject: [PATCH] Add Emacs config for C-z and y-or-n-p --- emacs/.emacs.d/init.org | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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,