I've just added a nice custom key binding:
;; Open files in dired mode using 'open'
(eval-after-load "dired"
'(progn
(define-key dired-mode-map (kbd "z")
(lambda () (interactive)
(let ((fn (dired-get-file-for-visit)))
(start-process "default-app" nil "open" fn))))))
https://jblevins.org/log/dired-open
Now, on dired
, I look at C-h b
(show all key bindings) but this new custom binding on the "z" key is shown as bound to ??
in the listing.
So, my question is, how can one add a bit of documentation to a custom key binding, which will be displayed in the "show all key bindings" list?
Perhaps does one have to give the function a global name?