Liu233w / multi-keys.el

Like key-chord.el but without input-method dependency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Support to bind a keymap?

LdBeth opened this issue · comments

When I am trying to do something like (multi-keys-define-global "xm" spacemacs-default-map), Emacs gives the Error message below:

command-execute: Wrong type argument: commandp, (keymap (32 . helm-M-x) (33 . shell-command) (117 . universal-argument) (57 . select-window-9) (56 . select-window-8) (55 . select-window-7) (54 . select-window-6) (53 . select-window-5) (52 . select-window-4) ...)

If it is possible to enable it to be used as leader keys?

nice idea (´・ω・`)

I just did some work on it ( #3 )

But it still have some bugs and I don't know how to fix it. I'll merge the pr when they are solved.

Just send a pr to this branch if you have some ideas.

BTW, 说英语好累_(:зゝ∠)_

Thank you very much! I'll look for it.

I find that which-key can display prefix names correctly only when the key is declared in spacemacs/init, so some dirty hacks on Spacemacs is required to git it work smoothly. :(

讲道理。用英语能提升逼格。

I find that keyboard macro is an alternative way to invoke the Spacemacs leader key. But directly bind a key is still a good utility