-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
embark-which-key-indicator cannot handle paging #707
Comments
I'd love to have this working, but I never was able to figure it out myself. I don't use which-key so I also didn't spend a ton of time on it, but I did try for a while. |
In the meantime, might I suggest trying (cl-pushnew '(embark-keybinding grid) vertico-multiform-categories) You can select a command by completion (and you can complete on either the command name or the string form of the key binding), or, if you press |
|
I'm glad you liked that suggestion. It's also related to what I use instead of which-key generally: (setq prefix-help-command #'embark-prefix-help-command) With that configuration pressing Personally, I like this a lot more than which-key for several reasons:
|
I had already enabled the embark-prefix-help-command, as the docs recommended, but haven't yet got into the habit of using it. You're right that it's good to summon help when needed. So far I have liked the timer based help in which-key, so that if I suddenly forget which key to press next it just pops up after a while and with any luck I'll see the key I wanted on the first page. But with the nice grid layout in Embark, I might drop which-key completely once I learn to press C-h instead. (I've been an Emacs user for 30 years, and only now did I learn that you could use C-h after a prefix key.) |
I was hoping that I could get the C-h paging in which-key to work with Embark via the
embark-which-key-indicator
from the Wiki (https://github.com/oantolin/embark/wiki/Additional-Configuration#use-which-key-like-a-key-menu-prompt) by doing(setq embark-help-key "?")
to leaveC-h
free for which-key.I found that the indicator function in the Wiki passes
t
for theno-paging
argument in the call towhich-key--show-keymap
, and I tried to change that tonil
to allow which-key to react to the paging keypress. This works on the which-key side, but once you have pressed e.g.C-h n
to page forward and the call returns, I got"Error running timer: (error "embark-next-symbol is not a keymap")
, and I'm not good enough at elisp to see what's going on. Maybe someone else can figure out how to fix this so that the which-key indicator function can do paging; it would be nice to have.The text was updated successfully, but these errors were encountered: