How can I make :q
in spacemacs' evil mode, kill the buffer and delete the window, but not kill Emacs?
Coming from VI, the habit of closing with :q/:wq
or ZZ/ZQ
doesn't translate very well into Emacs.
I'm too new to figure out how to reprogram this.
I've come to really like Spacemacs, but need help in modifying this behavior.
:q
quits vim. To delete a buffer and window you should use:bd
(I might be wrong, but this is how I remember it). Anyway, these things work similar in Spacemacs. However, for me (and I guess for most SPACEmacs users) the preferred way to achieve this is by pressingSPC b x
(or equivalentlySPC w x
, but I thinkSPC b x
is slightly more convenient to type).