Created
December 28, 2017 21:35
-
-
Save jclay/3e9e9b1c92e227eba6a0363322547c78 to your computer and use it in GitHub Desktop.
Spacemacs - Prevent :q from killing 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
;; This goes in dotspacemacs/user-config () function | |
;; :q kills only the current buffer | |
(evil-ex-define-cmd "q" 'kill-this-buffer) | |
;; Use :quit to close emacs | |
(evil-ex-define-cmd "quit" 'evil-quit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment