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

how to invoke a prefix keymap? #335

Closed
introom opened this issue Jul 2, 2019 · 2 comments
Closed

how to invoke a prefix keymap? #335

introom opened this issue Jul 2, 2019 · 2 comments

Comments

@introom
Copy link

introom commented Jul 2, 2019

I want to invoke evil-window-map as a hydra head?

Is it possible?

@abo-abo
Copy link
Owner

abo-abo commented Jul 2, 2019

You can use something like this:

(require 'evil)
(require 'which-key)
(eval
 `(defhydra hydra-evil-window-map (:columns 2)
    ,@(mapcar (lambda (x)
                (list (car x) (intern (cdr x)) (cdr x)))
              (which-key--get-keymap-bindings evil-window-map t))
    ("q" nil "quit")))

@introom introom closed this as completed Jul 3, 2019
@shadowrylander
Copy link

@introom hercules.el may also suit your needs here!

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

3 participants