From 7ecaa4e09415a6063e722c1db8511c6fe2586ec0 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 4 Jan 2015 00:23:22 -0500 Subject: [PATCH] Move key binding `SPC b d` to `SPC f d` This is the file that is deleted (to be more accurate with Emacs terminology) --- doc/DOCUMENTATION.md | 2 +- spacemacs/keybindings.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/DOCUMENTATION.md b/doc/DOCUMENTATION.md index 3f02ac41c..9ac02f04b 100644 --- a/doc/DOCUMENTATION.md +++ b/doc/DOCUMENTATION.md @@ -1073,7 +1073,6 @@ Buffer manipulation commands (start with `b`): Key Binding | Description ------------------------------------------|---------------------------------------------------------------- SPC b b or SPC TAB | switch to alternate buffer (switch back and forth) -SPC b d | delete the current buffer **and** file (ask for confirmation) SPC b e | erase the content of the buffer (ask for confirmation) SPC b k | kill the current buffer SPC b K | kill all buffers except the current one @@ -1093,6 +1092,7 @@ Files manipulation commands (start with `f`): Key Binding | Description ------------------------------------------|---------------------------------------------------------------- +SPC f d | delete a file and the associated buffer (ask for confirmation) SPC f f | open a file using `ido` SPC f s | save a file SPC f S | save all files diff --git a/spacemacs/keybindings.el b/spacemacs/keybindings.el index ff5fe05a3..8cb373aa7 100644 --- a/spacemacs/keybindings.el +++ b/spacemacs/keybindings.el @@ -36,7 +36,6 @@ (evil-leader/set-key "bb" 'spacemacs/alternate-buffer ;; switch back and forth between two last buffers "TAB" 'spacemacs/alternate-buffer - "bd" 'delete-current-buffer-file "be" 'spacemacs/safe-erase-buffer "bK" 'kill-other-buffers "bk" 'ido-kill-buffer @@ -67,6 +66,7 @@ "fg" 'rgrep) ;; file ----------------------------------------------------------------------- (evil-leader/set-key + "fd" 'delete-current-buffer-file "fei" 'find-user-init-file "fes" 'find-spacemacs-file "fec" 'find-contrib-file