Unbind default key binding for closing Emacs

Every so often, I accidentally close Emacs by confusing C-x and C-c.  To prevent
this, unbind the default key binding C-x C-c for closing Emacs.  Instead, we can
directly call `save-buffers-kill-emacs', what is what I am usually doing.

And, seriously, why should anyone close Emacs in the first place?
This commit is contained in:
Daniel - 2020-06-20 12:01:19 +02:00
parent 153c6e0aed
commit 1af68a6b00
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@
(bind-key [insert] nil)
(bind-key [kp-insert] nil)
(bind-key [remap fill-paragraph] #'endless/fill-or-unfill)
(unbind-key "C-x C-c" global-map)
;; Overwrite certain keybindings only if packages are avilable