Add aw--switch-buffer with ivy and ido

old-master
Nick Drozd 8 years ago
parent 74c9cef04f
commit 188c07a7aa
  1. 12
      ace-window.el

@ -502,9 +502,15 @@ Windows are numbered top down, left to right."
(defun aw-switch-buffer-in-window (window)
"Select buffer in WINDOW."
(aw-switch-to-window window)
(if (bound-and-true-p ivy-mode)
(ivy-switch-buffer)
(call-interactively 'switch-to-buffer)))
(aw--switch-buffer))
(defun aw--switch-buffer ()
(cond ((bound-and-true-p ivy-mode)
(ivy-switch-buffer))
((bound-and-true-p ido-mode)
(ido-switch-buffer))
(t
(call-interactively 'switch-to-buffer))))
(defcustom aw-swap-invert nil
"When non-nil, the other of the two swapped windows gets the point."

Loading…
Cancel
Save