No longer retain projectile cache across sessions
It's unnecessary overhead. Rebuilding the index the first time it is used per session is acceptable, imo.
This commit is contained in:
parent
29b383d900
commit
86c2d7c10a
1 changed files with 0 additions and 11 deletions
|
@ -31,7 +31,6 @@ Emacs.")
|
||||||
:init
|
:init
|
||||||
(setq projectile-cache-file (concat doom-cache-dir "projectile.cache")
|
(setq projectile-cache-file (concat doom-cache-dir "projectile.cache")
|
||||||
projectile-enable-caching doom-interactive-mode
|
projectile-enable-caching doom-interactive-mode
|
||||||
projectile-files-cache-expire 86400 ; expire after a day
|
|
||||||
projectile-globally-ignored-files '(".DS_Store" "Icon
" "TAGS")
|
projectile-globally-ignored-files '(".DS_Store" "Icon
" "TAGS")
|
||||||
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
|
||||||
|
@ -160,16 +159,6 @@ c) are not valid projectile projects."
|
||||||
(IS-WINDOWS
|
(IS-WINDOWS
|
||||||
(setq projectile-git-submodule-command nil)))
|
(setq projectile-git-submodule-command nil)))
|
||||||
|
|
||||||
(defadvice! doom--projectile-cache-timers-a ()
|
|
||||||
"Persist `projectile-projects-cache-time' across sessions, so that
|
|
||||||
`projectile-files-cache-expire' checks won't reset when restarting Emacs."
|
|
||||||
:before #'projectile-serialize-cache
|
|
||||||
(projectile-serialize projectile-projects-cache-time doom-projectile-cache-timer-file))
|
|
||||||
;; Restore it
|
|
||||||
(when (file-readable-p doom-projectile-cache-timer-file)
|
|
||||||
(setq projectile-projects-cache-time
|
|
||||||
(projectile-unserialize doom-projectile-cache-timer-file)))
|
|
||||||
|
|
||||||
(defadvice! doom--projectile-default-generic-command-a (orig-fn &rest args)
|
(defadvice! doom--projectile-default-generic-command-a (orig-fn &rest args)
|
||||||
"If projectile can't tell what kind of project you're in, it issues an error
|
"If projectile can't tell what kind of project you're in, it issues an error
|
||||||
when using many of projectile's command, e.g. `projectile-compile-command',
|
when using many of projectile's command, e.g. `projectile-compile-command',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue