Fix: core/projects: don't overwrite projectile-globally-ignored-directories

This commit is contained in:
Benjamin Andresen 2017-07-21 16:45:28 +02:00
parent 903f5b1a80
commit 10bae5a835

View file

@ -10,7 +10,6 @@ state are passed in.")
(setq projectile-cache-file (concat doom-cache-dir "projectile.cache")
projectile-enable-caching (not noninteractive)
projectile-file-exists-remote-cache-expire nil
projectile-globally-ignored-directories `(,doom-local-dir ".sync")
projectile-globally-ignored-file-suffixes '(".elc" ".pyc" ".o")
projectile-globally-ignored-files '(".DS_Store" "Icon ")
projectile-indexing-method 'alien
@ -20,6 +19,10 @@ state are passed in.")
'(".git" ".hg" ".svn" ".project" "package.json" "setup.py" "Gemfile"
"build.gradle"))
(after! projectile
(mapc (lambda (dir) (cl-pushnew dir projectile-globally-ignored-directories))
`(,doom-local-dir ".sync")))
:config
(add-hook 'doom-init-hook #'projectile-mode)