From 1950c24fffb1c6021dbaa9cccae9a67aab9f6c21 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 7 Nov 2016 17:23:08 -0800 Subject: [PATCH] [Emacs] Make imalison:other-window handle windows AND frames --- dotfiles/emacs.d/README.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 5487009b..801a9640 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1190,12 +1190,11 @@ programming mode. (make-frame) (split-window-right))) -(defun imalison:other-window (&rest args) +(defun imalison:other-window (count) (interactive (list 1)) - (if (imalison:use-frames-only) - (apply 'other-frame args) - (apply 'other-window args))) + (other-window count 'visible) + (select-frame-set-input-focus (selected-frame))) (when imalison:use-frames-only (setq pop-up-frames 'graphic-only)