reddit / emacs

Anyone written a keymap-to-transient.el routine?

crawsphi · 2022-02-13 20:33
Now that transient.el is in core...seems like going forward it could be used like which-key. That is, we could have a more friendly built in `prefix-help-command`. Wondering whether anyone has written something to render an arbitrary keymap in a transient menu? I looked around a bit but didn't see one. Of course transient menu items need names, but you could just use the symbol names (I think that's what which-key does if I remember right).
akirakom · 2022-02-14 16:19
Although it is not based on transient, [hercules](https://gitlab.com/jjzmajic/hercules.el) builds a transient command from a keymap.
crawsphi · 2022-02-14 18:56
Thanks, I had not seen that. Might be a good starting point.