Function: marginalia-annotate-theme

marginalia-annotate-theme is a natively compiled function defined in marginalia.el.

Signature

(marginalia-annotate-theme CAND)

Documentation

Annotate theme CAND with documentation and path.

Source Code

;; Defined in /nix/store/hym71by08nv7fpgl7asan3dvidx05yya-emacs-packages-deps/share/emacs/site-lisp/elpa/marginalia-20260926.1228/marginalia.el
(defun marginalia-annotate-theme (cand)
  "Annotate theme CAND with documentation and path."
  (when-let* ((file (gethash (concat cand "-theme") (marginalia--library-cache))))
    (marginalia--fields
     ((marginalia--library-doc file)
      :truncate 1.0 :face 'marginalia-documentation)
     ((marginalia--abbreviate-file-name (file-name-directory file))
      :truncate -1.0 :face 'marginalia-file-name))))