evil-leader icon indicating copy to clipboard operation
evil-leader copied to clipboard

map whole keymap-prefix in one go?

Open unhammer opened this issue 7 years ago • 1 comments

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 …)?

unhammer avatar May 23 '17 13:05 unhammer

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.

alanpearce avatar Jun 22 '18 10:06 alanpearce