From 6d3a6a0729170135a19bbb39e7c9b6052eaca3e8 Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Mon, 13 Nov 2017 19:17:47 +0100 Subject: [PATCH] ace-window.el (aw-switch-buffer-in-window): Use ivy if available Fixes #107 --- ace-window.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ace-window.el b/ace-window.el index 3024709..e4c9f8a 100644 --- a/ace-window.el +++ b/ace-window.el @@ -496,7 +496,9 @@ Windows are numbered top down, left to right." (defun aw-switch-buffer-in-window (window) "Select buffer in WINDOW." (aw-switch-to-window window) - (call-interactively 'switch-to-buffer)) + (if (bound-and-true-p ivy-mode) + (ivy-switch-buffer) + (call-interactively 'switch-to-buffer))) (defcustom aw-swap-invert nil "When non-nil, the other of the two swapped windows gets the point."