Function: projectile-find-file-hook-function

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

Signature

(projectile-find-file-hook-function)

Documentation

Called by find-file-hook when projectile-mode(var)/projectile-mode(fun) is on.

The function does pretty much nothing when triggered on remote files as all the operations it normally performs are extremely slow over tramp.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-find-file-hook-function ()
  "Called by `find-file-hook' when `projectile-mode' is on.

The function does pretty much nothing when triggered on remote files
as all the operations it normally performs are extremely slow over
tramp."
  (unless (file-remote-p default-directory)
    (projectile-maybe-limit-project-file-buffers)
    (when projectile-dynamic-mode-line
      (projectile-update-mode-line))
    (when projectile-auto-update-cache
      (projectile-cache-files-find-file-hook))
    (projectile-track-known-projects-find-file-hook)
    (projectile-visit-project-tags-table)))