Alt-Tab for Buffers
With Quelpa
(use-package switch-to-previous-buffer-mode
:after (evil-leader)
:quelpa (switch-to-previous-buffer-mode
:fetcher github
:repo "EricCrosson/switch-to-previous-buffer-mode")
:config
(defun user-switch-to-previous-buffer-mode-hook ()
"Personal hook to bind/unbind keys for `switch-to-previous-buffer-mode'."
(if switch-to-previous-buffer-mode
(evil-leader/set-key "C-i" 'switch-to-previous-buffer) ; binds to SPC Tab
(evil-leader/set-key "C-i" nil))) ; un-binds SPC Tab
(add-hook 'switch-to-previous-buffer-mode-hook 'user-switch-to-previous-buffer-mode-hook))
Note: this project is not destined for MELPA
Or manually, after downloading into your load-path
(require 'switch-to-previous-buffer-mode)
(bind-key "C-c C-i" 'switch-to-previous-buffer switch-to-previous-buffer-mode-map)
This package is a modular implementation of a Prelude feature.
GPL 2 (or higher) © Free Software Foundation, Inc.