I usually have multiple windows open and switch between them often, so I put this in my init file:
(global-set-key (kbd "C-o") 'other-window) ; Save a keystroke when switching windows
(global-set-key (kbd "C-x o") 'open-line)
This switches the two default commands
Having done this,
C-o doesn't work when the active window is Dired or Buffer Menu, since both of these have their own commands that override my key bindings: respectively,
Buffer-menu-switch-other-window. It seems to me that I don't really need these, since
o alone does almost exactly the same thing.
How can I make
C-o always run
other-window and not something else?