Skip to content

Instantly share code, notes, and snippets.

@jclay
Created December 28, 2017 21:35
Show Gist options
  • Save jclay/3e9e9b1c92e227eba6a0363322547c78 to your computer and use it in GitHub Desktop.
Save jclay/3e9e9b1c92e227eba6a0363322547c78 to your computer and use it in GitHub Desktop.
Spacemacs - Prevent :q from killing emacs
;; 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