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
This commit is contained in:
Christoph Paulik 2015-11-13 19:38:29 +01:00 committed by syl20bnr
parent bc82ec0bec
commit d1c8e4b9f7
2 changed files with 9 additions and 8 deletions

View File

@ -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=:

View File

@ -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