Add Emacs config for C-z and y-or-n-p

This commit is contained in:
Tom Willemse 2017-04-02 20:49:38 -07:00
parent 72160a70bb
commit 8ee052fb3a

View file

@ -336,6 +336,31 @@ Computing Environment".
(setq-default truncate-lines t) (setq-default truncate-lines t)
#+END_SRC #+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 * Theme
Load my personal theme. I sometimes change it to a different theme, Load my personal theme. I sometimes change it to a different theme,