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:
parent
153c6e0aed
commit
1af68a6b00
1
init.el
1
init.el
|
@ -221,6 +221,7 @@
|
||||||
(bind-key [insert] nil)
|
(bind-key [insert] nil)
|
||||||
(bind-key [kp-insert] nil)
|
(bind-key [kp-insert] nil)
|
||||||
(bind-key [remap fill-paragraph] #'endless/fill-or-unfill)
|
(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
|
;; Overwrite certain keybindings only if packages are avilable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue