From 212e27b5d320a15ed5c63556547467a7b5c73d9e Mon Sep 17 00:00:00 2001 From: Daniel Wu Date: Wed, 24 Dec 2014 19:57:13 -0500 Subject: [PATCH] bind SPC TAB to alternate-buffer --- doc/DOCUMENTATION.md | 5 +++-- spacemacs/keybindings.el | 1 + spacemacs/packages.el | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/DOCUMENTATION.md b/doc/DOCUMENTATION.md index 7562f8086..b6999f804 100644 --- a/doc/DOCUMENTATION.md +++ b/doc/DOCUMENTATION.md @@ -1069,6 +1069,7 @@ Buffer manipulation commands (start with `b`): Key Binding | Description -----------------------|---------------------------------------------------------------- SPC b b | switch to alternate buffer (switch back and forth) +SPC TAB | same as `SPC b b` 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 @@ -1093,7 +1094,7 @@ Key Binding | Description SPC f i | open your `init.el` file SPC f s | save a file SPC f S | save all files -SPC f t or SPC TAB | toggle file tree side bar using [NeoTree][neotree] +SPC f t | toggle file tree side bar using [NeoTree][neotree] SPC f y | show current file absolute path in the minibuffer ### Ido @@ -1141,7 +1142,7 @@ file tree with [NeoTree][neotree]. To toggle the `NeoTree` buffer press: - TAB + f t In the `NeoTree` buffer: diff --git a/spacemacs/keybindings.el b/spacemacs/keybindings.el index 7124dee07..de7a1be5b 100644 --- a/spacemacs/keybindings.el +++ b/spacemacs/keybindings.el @@ -35,6 +35,7 @@ ;; buffers -------------------------------------------------------------------- (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 diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 0e11b3e8a..9dae54c9a 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -1410,8 +1410,7 @@ determine the state to enable when escaping from the insert state.") neo-banner-message "File Tree browser" neo-smart-open t neo-persist-show nil) - (evil-leader/set-key "ft" 'neotree-toggle) - (evil-leader/set-key "TAB" 'neotree-toggle)) + (evil-leader/set-key "ft" 'neotree-toggle)) :config (add-hook 'neotree-mode-hook (lambda ()