From d1c8e4b9f79acbc010a4c958bb588122024f4445 Mon Sep 17 00:00:00 2001 From: Christoph Paulik Date: Fri, 13 Nov 2015 19:38:29 +0100 Subject: [PATCH] Disable projectile-caching by default. - Default projectile settings are to disable caching when indexing method is `alien. So setting the indexing method should be enough. - On windows we keep the 'native method unless find is found --- doc/DOCUMENTATION.org | 3 +++ layers/+distribution/spacemacs-base/packages.el | 14 ++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/doc/DOCUMENTATION.org b/doc/DOCUMENTATION.org index 8b087bea4..60f94251c 100644 --- a/doc/DOCUMENTATION.org +++ b/doc/DOCUMENTATION.org @@ -2495,6 +2495,9 @@ To search in a project see [[Searching in a project][project searching]]. | ~SPC s k p~ | run =ack= | | ~SPC s p p~ | run =pt= | +*Note for Windows Users*: To enable fast indexing the GNU ~find~ or +Cygwin ~find~ must be in your ~PATH~. + ** Registers Access commands to the various registers start with =r=: diff --git a/layers/+distribution/spacemacs-base/packages.el b/layers/+distribution/spacemacs-base/packages.el index cf13218ee..e58baa513 100644 --- a/layers/+distribution/spacemacs-base/packages.el +++ b/layers/+distribution/spacemacs-base/packages.el @@ -1230,14 +1230,12 @@ ARG non nil means that the editing style is `vim'." 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 (spacemacs/system-is-mswindows) - (setq projectile-generic-command "find . -type f")) - (setq projectile-enable-caching t - projectile-indexing-method 'alien - projectile-sort-order 'recentf + ;; note for Windows: GNU find or Cygwin find must be in path to enable + ;; fast indexing + (when (and (spacemacs/system-is-mswindows) (executable-find "find")) + (setq projectile-indexing-method 'alien) + projectile-generic-command "find . -type f") + (setq projectile-sort-order 'recentf projectile-cache-file (concat spacemacs-cache-directory "projectile.cache") projectile-known-projects-file (concat spacemacs-cache-directory