Fix projectile-generic-command

At init time, the fallback is undefined. Instead, only call setq in the
first place on Windows.
This commit is contained in:
Eivind Fonn 2015-08-12 20:15:47 +02:00 committed by syl20bnr
parent 19bb890402
commit 112b9507ca

View file

@ -3211,14 +3211,13 @@ one of `l' or `r'."
projectile-vc)
:init
(progn
;; note for Windows: GNU find or Cygwin find must be in path
;; default parameters are not supported on Windows, we default
;; to simplest call to find.
(when (system-is-mswindows)
(setq projectile-generic-command "find . -type f"))
(setq projectile-enable-caching t
projectile-indexing-method 'alien
;; note for Windows: GNU find or Cygwin find must be in path
;; default parameters are not supported on Windows, we default
;; to simplest call to find.
projectile-generic-command (if (system-is-mswindows)
"find . -type f"
projectile-generic-command)
projectile-sort-order 'recentf
projectile-cache-file (concat spacemacs-cache-directory
"projectile.cache")