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

map whole keymap-prefix in one go? #39

Open
unhammer opened this issue May 23, 2017 · 1 comment
Open

map whole keymap-prefix in one go? #39

unhammer opened this issue May 23, 2017 · 1 comment

Comments

@unhammer
Copy link

Say I there's a bunch of keybindings under the C-c x prefix already defined, e.g. C-c x s, C-c x f etc. Now I want to also have the same bindings under <leader> x s/f/etc. Is it possible to say something like (evil-leader/set-keys-from-prefix "x" "C-c x") (assuming the C-c x bindings are already loaded) instead of hardcoding individual (evil-leader/set-key "x s" #'do-the-x-s-thing "f" #'do-the-x-f-thing …)?

@alanpearce
Copy link

I just found this issue as I wanted to do the same thing.

(evil-leader/set-key "w" evil-window-map) seems to do the right thing.

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