From 112b9507ca924a989af36df2320debef2acabc6d Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Wed, 12 Aug 2015 20:15:47 +0200 Subject: [PATCH] Fix projectile-generic-command At init time, the fallback is undefined. Instead, only call setq in the first place on Windows. --- spacemacs/packages.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 8d4ea1355..9b49b6dd3 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -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")