mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-26 16:41:04 -05:00
refactor: s/doom-projectile-cache-dir/doom-project-cache-dir/
Geenralize name of variable ahead of replacing projectile with project.el.
This commit is contained in:
@@ -14,7 +14,7 @@ Is nil if no executable is found in your PATH during startup.")
|
|||||||
|
|
||||||
Is nil if no executable is found in your PATH during startup.")
|
Is nil if no executable is found in your PATH during startup.")
|
||||||
|
|
||||||
(defvar doom-projectile-cache-dir (file-name-concat doom-profile-cache-dir "projectile/")
|
(defvar doom-project-cache-dir (file-name-concat doom-profile-cache-dir "projectile/")
|
||||||
"The directory where per-project projectile file index caches are stored.
|
"The directory where per-project projectile file index caches are stored.
|
||||||
|
|
||||||
Must end with a slash.")
|
Must end with a slash.")
|
||||||
@@ -51,7 +51,7 @@ Must end with a slash.")
|
|||||||
projectile-globally-ignored-file-suffixes '(".elc" ".pyc" ".o")
|
projectile-globally-ignored-file-suffixes '(".elc" ".pyc" ".o")
|
||||||
projectile-kill-buffers-filter 'kill-only-files
|
projectile-kill-buffers-filter 'kill-only-files
|
||||||
projectile-ignored-projects '("~/")
|
projectile-ignored-projects '("~/")
|
||||||
projectile-known-projects-file (concat doom-projectile-cache-dir "projects.eld")
|
projectile-known-projects-file (concat doom-project-cache-dir "projects.eld")
|
||||||
projectile-ignored-project-function #'doom-project-ignored-p
|
projectile-ignored-project-function #'doom-project-ignored-p
|
||||||
projectile-fd-executable doom-fd-executable)
|
projectile-fd-executable doom-fd-executable)
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ Must end with a slash.")
|
|||||||
(global-set-key [remap find-tag] #'projectile-find-tag)
|
(global-set-key [remap find-tag] #'projectile-find-tag)
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(make-directory doom-projectile-cache-dir t)
|
(make-directory doom-project-cache-dir t)
|
||||||
|
|
||||||
;; Projectile runs four functions to determine the root (in this order):
|
;; Projectile runs four functions to determine the root (in this order):
|
||||||
;;
|
;;
|
||||||
@@ -102,7 +102,7 @@ Must end with a slash.")
|
|||||||
(projectile-cache-file
|
(projectile-cache-file
|
||||||
(expand-file-name
|
(expand-file-name
|
||||||
(format "%s-%s" (doom-project-name proot) (sha1 proot))
|
(format "%s-%s" (doom-project-name proot) (sha1 proot))
|
||||||
doom-projectile-cache-dir)))
|
doom-project-cache-dir)))
|
||||||
(funcall fn proot)))
|
(funcall fn proot)))
|
||||||
|
|
||||||
;; HACK: `projectile-ensure-project' operates on the current value of
|
;; HACK: `projectile-ensure-project' operates on the current value of
|
||||||
|
Reference in New Issue
Block a user