Function: marginalia-annotate-binding

marginalia-annotate-binding is a byte-compiled function defined in marginalia.el.

Signature

(marginalia-annotate-binding CAND)

Documentation

Annotate command CAND with keybinding.

Source Code

;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia-annotate-binding (cand)
  "Annotate command CAND with keybinding."
  (when-let* ((sym (intern-soft cand))
              (key (and (commandp sym) (where-is-internal sym nil 'first-only))))
    (format #(" (%s)" 1 5 (face marginalia-key)) (key-description key))))