bind SPC TAB to alternate-buffer
This commit is contained in:
parent
7ebe1ae1a7
commit
212e27b5d3
|
@ -1069,6 +1069,7 @@ Buffer manipulation commands (start with `b`):
|
||||||
Key Binding | Description
|
Key Binding | Description
|
||||||
-----------------------|----------------------------------------------------------------
|
-----------------------|----------------------------------------------------------------
|
||||||
<kbd>SPC b b</kbd> | switch to alternate buffer (switch back and forth)
|
<kbd>SPC b b</kbd> | switch to alternate buffer (switch back and forth)
|
||||||
|
<kbd>SPC TAB</kbd> | same as `SPC b b`
|
||||||
<kbd>SPC b d</kbd> | delete the current buffer **and** file (ask for confirmation)
|
<kbd>SPC b d</kbd> | delete the current buffer **and** file (ask for confirmation)
|
||||||
<kbd>SPC b e</kbd> | erase the content of the buffer (ask for confirmation)
|
<kbd>SPC b e</kbd> | erase the content of the buffer (ask for confirmation)
|
||||||
<kbd>SPC b k</kbd> | kill the current buffer
|
<kbd>SPC b k</kbd> | kill the current buffer
|
||||||
|
@ -1093,7 +1094,7 @@ Key Binding | Description
|
||||||
<kbd>SPC f i</kbd> | open your `init.el` file
|
<kbd>SPC f i</kbd> | open your `init.el` file
|
||||||
<kbd>SPC f s</kbd> | save a file
|
<kbd>SPC f s</kbd> | save a file
|
||||||
<kbd>SPC f S</kbd> | save all files
|
<kbd>SPC f S</kbd> | save all files
|
||||||
<kbd>SPC f t</kbd> or <kbd>SPC TAB</kbd> | toggle file tree side bar using [NeoTree][neotree]
|
<kbd>SPC f t</kbd> | toggle file tree side bar using [NeoTree][neotree]
|
||||||
<kbd>SPC f y</kbd> | show current file absolute path in the minibuffer
|
<kbd>SPC f y</kbd> | show current file absolute path in the minibuffer
|
||||||
|
|
||||||
### Ido
|
### Ido
|
||||||
|
@ -1141,7 +1142,7 @@ file tree with [NeoTree][neotree].
|
||||||
|
|
||||||
To toggle the `NeoTree` buffer press:
|
To toggle the `NeoTree` buffer press:
|
||||||
|
|
||||||
<SPC> TAB
|
<SPC> f t
|
||||||
|
|
||||||
In the `NeoTree` buffer:
|
In the `NeoTree` buffer:
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
;; buffers --------------------------------------------------------------------
|
;; buffers --------------------------------------------------------------------
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
"bb" 'spacemacs/alternate-buffer ;; switch back and forth between two last buffers
|
"bb" 'spacemacs/alternate-buffer ;; switch back and forth between two last buffers
|
||||||
|
"TAB" 'spacemacs/alternate-buffer
|
||||||
"bd" 'delete-current-buffer-file
|
"bd" 'delete-current-buffer-file
|
||||||
"be" 'spacemacs/safe-erase-buffer
|
"be" 'spacemacs/safe-erase-buffer
|
||||||
"bK" 'kill-other-buffers
|
"bK" 'kill-other-buffers
|
||||||
|
|
|
@ -1410,8 +1410,7 @@ determine the state to enable when escaping from the insert state.")
|
||||||
neo-banner-message "File Tree browser"
|
neo-banner-message "File Tree browser"
|
||||||
neo-smart-open t
|
neo-smart-open t
|
||||||
neo-persist-show nil)
|
neo-persist-show nil)
|
||||||
(evil-leader/set-key "ft" 'neotree-toggle)
|
(evil-leader/set-key "ft" 'neotree-toggle))
|
||||||
(evil-leader/set-key "TAB" 'neotree-toggle))
|
|
||||||
:config
|
:config
|
||||||
(add-hook 'neotree-mode-hook
|
(add-hook 'neotree-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
Loading…
Reference in a new issue