3 ms·
Fighting against idiomatic Emacs keybindings is an uphill battle, but the hill is not very steep. The recipe that works for me: 1. Bind the behavior you want i
by CyberShadow 5y ago
Fighting against idiomatic Emacs keybindings is an uphill battle, but the hill is not very steep. The recipe that works for me:
1. Bind the behavior you want in the global map. (global-set-key (kbd "<key-here>") #'the-action-you-want)
2. Any time you encounter a mode which overrides this key, press C-h k <key-here>. It will tell you the name of the map in which the key is bound (usually foo-mode-map). Then, add: (define-key foo-mode-map (kbd "<key-here>") nil). This will unmap the key from the mode's map, revealing the binding in the global map.
- akkartik 5y agoThank you! This is very actionable.