From bf9e619533eff0cfd44a3d23c0a2e25ea9bee23d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 30 Aug 2024 01:02:33 -0400 Subject: [PATCH] refactor: remove redundant projectile-track-known-projects hook With the `doom-switch-buffer-hook` hook in 83fedf1, this hook isn't needed anymore. Amend: 83fedf1fffcf --- lisp/doom-projects.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/lisp/doom-projects.el b/lisp/doom-projects.el index 51736a196..a9aa8edd6 100644 --- a/lisp/doom-projects.el +++ b/lisp/doom-projects.el @@ -121,9 +121,6 @@ Is nil if no executable is found in your PATH during startup.") (put 'projectile-ripgrep 'disabled "Use +default/search-project instead") (put 'projectile-grep 'disabled "Use +default/search-project instead") - ;; Treat current directory in dired as a "file in a project" and track it - (add-hook 'dired-before-readin-hook #'projectile-track-known-projects-find-file-hook) - ;; Accidentally indexing big directories like $HOME or / will massively bloat ;; projectile's cache (into the hundreds of MBs). This purges those entries ;; when exiting Emacs to prevent slowdowns/freezing when cache files are