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

Add Support to bind a keymap? #2

Open
LdBeth opened this issue Mar 27, 2017 · 4 comments · May be fixed by #3
Open

Add Support to bind a keymap? #2

LdBeth opened this issue Mar 27, 2017 · 4 comments · May be fixed by #3

Comments

@LdBeth
Copy link

LdBeth commented Mar 27, 2017

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?

@Liu233w
Copy link
Owner

Liu233w commented Mar 29, 2017

nice idea (´・ω・`)

@Liu233w Liu233w linked a pull request Mar 29, 2017 that will close this issue
@Liu233w
Copy link
Owner

Liu233w commented Mar 29, 2017

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, 说英语好累_(:зゝ∠)_

@LdBeth
Copy link
Author

LdBeth commented Mar 29, 2017

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. :(

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

@LdBeth
Copy link
Author

LdBeth commented Apr 23, 2017

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

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

Successfully merging a pull request may close this issue.

2 participants