Created
March 28, 2013 04:27
-
-
Save lateau/5260613 to your computer and use it in GitHub Desktop.
Disable C-x C-c binding execute kill-emacs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun dont-kill-emacs() | |
"Disable C-x C-c binding execute kill-emacs." | |
(interactive) | |
(error (substitute-command-keys "To exit emacs: \\[kill-emacs]"))) | |
(global-set-key (kbd "C-x C-c") 'dont-kill-emacs) |
Awesome, you can also just use:
(global-unset-key (kbd "C-x C-c"))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!