Skip to content

Commit

Permalink
Fix projectile-generic-command
Browse files Browse the repository at this point in the history
At init time, the fallback is undefined. Instead, only call setq in the
first place on Windows.
  • Loading branch information
TheBB authored and syl20bnr committed Aug 12, 2015
1 parent 19bb890 commit 112b950
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions spacemacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 112b950

Please sign in to comment.