Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: State-local bindings #8

Open
gnosis-zz opened this issue May 23, 2013 · 1 comment
Open

Feature request: State-local bindings #8

gnosis-zz opened this issue May 23, 2013 · 1 comment

Comments

@gnosis-zz
Copy link

It would be nice if evil-leader would allow one key to simultaneously be bound to a different action for each evil state.

For example, allow all of the following to be active at the same time:

(evil-leader/set-key-for-mode 'motion 'help-mode "x" 'foo)
(evil-leader/set-key-for-mode 'normal 'help-mode "x" 'bar)
(evil-leader/set-key-for-mode 'insert 'help-mode "x" 'baz)

@vyorkin
Copy link

vyorkin commented Aug 19, 2017

indeed! its weird that nobody else asked for this feature
@gnosis-zz do you know any workaround other than e.g.:

(evil-define-minor-mode-key 'visual 'alchemist-mode " e" 'alchemist-iex-send-current-line)
                                                     ^^
(evil-define-minor-mode-key 'visual 'alchemist-mode " E" 'alchemist-iex-send-current-line-and-go)
                                                     ^^
...

and so on
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants