I have two modes that bind a key. How can I choose which one should get to do its thing?
I'm asking generally but currently the situation is that when I'm in a certain mode, I want to use its bindings (which are currently shadowed by another mode).
I even tried to add a hook that local-set-key
s at the end of my init file but that doesn't work, it gets shadowed too.
minor-mode-map-alist
at any given time (you can useafter-load-functions
to programatically massage this as new libraries are loaded). However there are more (and more complex) levels of keymap than this. You should update your question with precise details of what you are doing. Include the relevant elisp. – phils Jan 13 '17 at 14:01