I would like to have ;
bound to other-window
in special modes, unless the derived mode overrides the definition. It would be nice to also include modes not strictly deriving from special-mode
(but defining 'mode-class
), but that's not strictly necessary.
Ideas I've tried/considered:
- Use
global-set-key
: I thought the global keymap would be of lower precedence than major-mode keymaps, so;
would work in modes that defined it, but instead I just overwroteself-insert-command
- Add the keybinding in
special-mode-hook
: It doesn't seem like this hook is actually run, and this misses the'mode-class
special modes - Add a keybinding that either calls
other-window
or defers to the major mode. Not sure how I would do this?
Any ideas?
define-key
withspecial-mode-map
.