|
|
|
|
@ -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." |
|
|
|
|
|