Switch to the most recently used window.
Use the ctrlxo function to start switching between windows on visible frames in the recent usage ordering.
ctrlxo also activates transient keymap:
- o to switch to the next window
- O to switch to the previous window
- C-g to cancel switching and select window that was active on
ctrlxoinvocation
Use the ctrlxo-currrent-frame function to start switching between windows on the current frame.
Following example configuration will allow to switch between windows on all visible frames with C-TAB and between windows on the current frame with C-x o:
(require 'ctrlxo)
(global-set-key (kbd "C-<tab>") #'ctrlxo)
(global-set-key (kbd "C-x o") #'ctrlxo-current-frame)
(define-key ctrlxo-map (kbd "<tab>") #'ctrlxo-forward)
(define-key ctrlxo-map (kbd "<S-tab>") #'ctrlxo-backward)Now use C-TAB or C-x o to start switching, TAB or o to select next window and S-TAB or O to select previous window.
ctrlxo is available on MELPA.
Alternatively, you can download ctrlxo.el and run:
M-x package-install-file RET <path-to-ctrlxo-el> RET