I'm using the which key plugin in my emacs setup and I notice that when I set a key binding in a keymap with a lambda expression, like this
(define-key my-yank-keymap "l" (lambda () "Yank whole line" (interactive) (save-excursion (back-to-indentation) (set-mark-command nil) (move-end-of-line nil) (kill-ring-save 'doesnt-matter-because 'of-next-argument t)))) (global-set-key (kbd "C-c w") my-yank-keymap)
C-c w displays my keybinding for the
l key, but the label for it is simply
which-key be configured to use the
DOCSTRING of the function/lambda when there is no function name to display?