about summary refs log tree commit diff
path: root/tools/emacs/config/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tools/emacs/config/init.el')
-rw-r--r--tools/emacs/config/init.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el
index 975164383ce9..307699536cc4 100644
--- a/tools/emacs/config/init.el
+++ b/tools/emacs/config/init.el
@@ -55,10 +55,10 @@
               :keymap ivy-switch-buffer-map
               :preselect (buffer-name (other-buffer (current-buffer)))
               :action (lambda (buffer)
-                        (let ((new-window (split-window-below)))
-                          (edwina-arrange)
-                          (with-selected-window new-window
-                            (switch-to-buffer buffer nil 'force-same-window))))
+                        (interactive)
+                        (split-window-below)
+                        (switch-to-buffer buffer nil 'force-same-window)
+                        (edwina-arrange))
               :matcher #'ivy--switch-buffer-matcher
               :caller 'ivy-switch-buffer))
   :bind (:map edwina-mode-map