Function: marginalia-annotate-project-file

marginalia-annotate-project-file is a natively 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 /nix/store/hym71by08nv7fpgl7asan3dvidx05yya-emacs-packages-deps/share/emacs/site-lisp/elpa/marginalia-20260926.1228/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)))))