Function: projectile-track-known-projects-find-file-hook

projectile-track-known-projects-find-file-hook is a byte-compiled function defined in projectile.el.

Signature

(projectile-track-known-projects-find-file-hook &optional PROJECT-ROOT)

Documentation

Function for caching projects with find-file-hook.

PROJECT-ROOT defaults to the current project.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-track-known-projects-find-file-hook (&optional project-root)
  "Function for caching projects with `find-file-hook'.
PROJECT-ROOT defaults to the current project."
  (when projectile-track-known-projects-automatically
    (when-let* ((project-root (or project-root (projectile-project-p))))
      (projectile-add-known-project project-root))))