diff --git a/init.el b/init.el index 2b5abfc..766a1ae 100644 --- a/init.el +++ b/init.el @@ -166,7 +166,7 @@ "'" '(iterm-focus :which-key "iterm") "?" '(iterm-goto-filedir-or-home :which-key "iterm - goto dir") "/" 'counsel-ag - "TAB" '(switch-to-other-buffer :which-key "prev buffer") + "TAB" '(switch-to-last-buffer :which-key "prev buffer") "SPC" '(avy-goto-word-or-subword-1 :which-key "go to char") ;; Applications @@ -261,6 +261,11 @@ (window-configuration-to-register ?_) (delete-other-windows))))) +(defun switch-to-last-buffer () + "Switch to the last buffer, allowes quick jumping between the last two." + (interactive) + (switch-to-buffer nil)) + ;; other