Function: marginalia-annotate-library
marginalia-annotate-library is a byte-compiled function defined in
marginalia.el.
Signature
(marginalia-annotate-library CAND)
Documentation
Annotate library CAND with documentation and path.
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia-annotate-library (cand)
"Annotate library CAND with documentation and path."
(setq cand (marginalia--library-name cand))
(when-let* ((file (gethash cand (marginalia--library-cache))))
(marginalia--fields
;; Display if the corresponding feature is loaded.
;; feature/=library file, but better than nothing.
((when-let* ((sym (intern-soft cand)))
(when (memq sym features)
(propertize "Loaded" 'face 'marginalia-on)))
:width 8)
((marginalia--library-doc file)
:truncate 1.0 :face 'marginalia-documentation)
((marginalia--abbreviate-file-name (file-name-directory file))
:truncate -0.5 :face 'marginalia-file-name))))