Initialize projectile variables before loading projectile

Fixes #236
This commit is contained in:
Henrik Lissner 2017-10-08 13:09:57 +02:00
parent 934756700d
commit 8fc1c46dca
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -6,8 +6,7 @@ state are passed in.")
(def-package! projectile (def-package! projectile
:demand t :demand t
:init (add-hook 'doom-init-hook #'projectile-mode) :init
:config
(setq projectile-cache-file (concat doom-cache-dir "projectile.cache") (setq projectile-cache-file (concat doom-cache-dir "projectile.cache")
projectile-enable-caching (not noninteractive) projectile-enable-caching (not noninteractive)
projectile-indexing-method 'alien projectile-indexing-method 'alien
@ -16,6 +15,8 @@ state are passed in.")
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"))
(add-hook 'doom-init-hook #'projectile-mode)
:config
;; a more generic project root file ;; a more generic project root file
(push ".project" projectile-project-root-files-bottom-up) (push ".project" projectile-project-root-files-bottom-up)