Closed jmorag closed 4 years ago
Hi! No, at the moment that's not possible. The way the major-mode specific bindings work is that RYO looks for a keymap named after the current major-mode. So if you're in c-mode
it would look for ryo-c-mode-map
.
I agree though that it would be nice if it would work for derived modes. I have some ideas, maybe I can make it work :)
It wasn't that hard! It should work now with the latest commit.
Excellent! Thank you very much :)
Is it possible to define major mode keys in parent modes? For example, I'd like to have 'w' as
forward-word
in non-programming modes, butforward-same-syntax
in programming modes, but the following doesn't seem to do that.