summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/.emacs.d/init.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/.emacs.d/init.el b/common/.emacs.d/init.el
index cc1ef49..7269a7b 100644
--- a/common/.emacs.d/init.el
+++ b/common/.emacs.d/init.el
@@ -244,6 +244,12 @@
(interactive)
(switch-to-buffer (other-buffer (current-buffer)) nil t))
+ (defun go-other-window (&optional arg)
+ (interactive "P")
+ (select-window
+ (get-mru-window (when arg 'visible)
+ nil 'not-selected)))
+
(defun kill-buffer-and-maybe-window ()
(interactive)
(if (not (one-window-p))
@@ -4288,7 +4294,8 @@ instead."
("s-j" switch-to-buffer)
("s-J" go-other-buffer)
- ("s-<tab>" ace-window)
+ ("s-<tab>" go-other-window)
+ ("C-s-<tab>" ace-window)
("s-t" tab-bar-new-tab)
("s-T" tab-bar-close-tab)