Function: marginalia-annotate-project-file

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

Signature

(marginalia-annotate-project-file CAND)

Documentation

Annotate file CAND with its size, modification time and other attributes.

Source Code

;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia-annotate-project-file (cand)
  "Annotate file CAND with its size, modification time and other attributes."
  ;; Absolute project directories also report project-file category
  (if (file-name-absolute-p cand)
      (marginalia-annotate-file cand)
    (when-let* ((root (marginalia--project-root)))
      (marginalia-annotate-file (expand-file-name cand root)))))