Add `kill-buffer-and-window` keybinding

`kill-buffer-and-window` is now bound to `SPC b D` and the keybinding
is documented.
This commit is contained in:
Jonas Benn 2016-06-17 21:58:58 +02:00 committed by d12frosted
parent a713189685
commit 878c45abf9
No known key found for this signature in database
GPG Key ID: 8D33A3B1A4AF7D30
2 changed files with 2 additions and 0 deletions

View File

@ -1919,6 +1919,7 @@ Buffer manipulation commands (start with ~b~):
| ~SPC TAB~ | switch to alternate buffer in the current window (switch back and forth) |
| ~SPC b b~ | switch to a buffer using =helm= |
| ~SPC b d~ | kill the current buffer (does not delete the visited file) |
| ~SPC b D~ | kill the current buffer and its window |
| ~SPC b e~ | erase the content of the buffer (ask for confirmation) |
| ~SPC b h~ | open =*spacemacs*= home buffer |
| ~SPC b k~ | kill a buffer |

View File

@ -118,6 +118,7 @@
;; buffers --------------------------------------------------------------------
(spacemacs/set-leader-keys
"bd" 'spacemacs/kill-this-buffer
"bD" 'kill-buffer-and-window
"TAB" 'spacemacs/alternate-buffer
"bh" 'spacemacs/home
"be" 'spacemacs/safe-erase-buffer