diff options
-rw-r--r-- | .emacs.d/init.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4bb24694..c195f234 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1239,16 +1239,16 @@ don't consider windows satisfying the predicate EXCLUDE." (setq best-time time) (setq best-window window))))) -(defun spw/back-and-forth-noselect (arg) +(defun spw/back-and-forth (arg) (interactive "P") (if arg ;; if there's a prefix arg then just `other-window', so that's still ;; available on M-1 C-x o (call-interactively #'other-window) (if-let ((window (spw/get-mru-window))) - (select-window window 'mark-for-redisplay) + (select-window window) (user-error "No other window to select")))) -(global-set-key [remap other-window] #'spw/back-and-forth-noselect) +(global-set-key [remap other-window] #'spw/back-and-forth) (defun spw/other-window-noselect (count &optional interactive) (interactive "p\np") |