Show keybindings in a custom helm source?

13 views
Skip to first unread message

fi nurr

unread,
Apr 23, 2015, 2:01:19 PM4/23/15
to emacs...@googlegroups.com
Hello,

I've written a custom helm source and also configured a custom keymap to
be used in that source.
Is there any way to show the keybindings next to their corresponding actions
just like helm-M-x does without repeating the code for helm-M-x?

Thanks in advance!

Michael Heerdegen

unread,
Apr 23, 2015, 4:00:12 PM4/23/15
to emacs...@googlegroups.com
Mmh, helm-M-x does not have that many actions here. I guess you mean
like helm-buffers-list for example? There's not any magic in showing
the keybindings next to the actions, they are hardcoded in the action
descriptions - see helm-source.el.


Regards,

Michael.

fi nurr

unread,
Apr 24, 2015, 3:48:53 AM4/24/15
to emacs...@googlegroups.com, michael_...@web.de
Well, helm-M-x shows the keybindings next to the candidates, not the actions. 
I mixed that up. Nonetheless, adding the keybinding to the action name is
a feasible solution to my problem. Thanks for that!

Now, next, looking up how to give the keybindings a different font property... :) 
Reply all
Reply to author
Forward
0 new messages