diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-01T03·07-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-01T03·07-0400 |
commit | 39b0e5056bb98ffda868d989aca2531ec284633a (patch) | |
tree | 189f3c3d45d4461b475d9f7a2c6d47189bdf4386 /configs | |
parent | a4f87fe53c87776cecc316aedf89009e9a6b5b47 (diff) |
Creates custom function for intuitive, frame-specific buffer switching
Diffstat (limited to 'configs')
-rw-r--r-- | configs/.emacs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configs/.emacs b/configs/.emacs index fd5490e014ce..ef417ddf958d 100644 --- a/configs/.emacs +++ b/configs/.emacs @@ -346,6 +346,12 @@ (evil-window-down 1)) +(defun wc/switch-to-mru-buffer () + "Switches to the most recently used buffer, including visible buffers." + (interactive) + (switch-to-buffer (other-buffer (current-buffer) t (selected-frame)))) + + ;; Evil Leader Settings (use-package evil-leader :ensure t @@ -355,7 +361,7 @@ (evil-leader/set-key "w" 'toggle-truncate-lines "x" 'helm-M-x - "<SPC>" 'mode-line-other-buffer + "<SPC>" 'wc/switch-to-mru-buffer "a" 'ace-delete-window "s" 'ace-swap-window "n" 'neotree-toggle-project-dir |