aboutsummaryrefslogtreecommitdiffstats
path: root/oni-projectile.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-03-01 00:14:56 -0800
committerGravatar Tom Willemse2019-03-01 00:14:56 -0800
commit92f1b9689084c08de6898a6659dd1219542580f8 (patch)
tree57d028a30e66a076a19124a942ab796a318ffc60 /oni-projectile.el
parent7f0927f7cea7ed44b5d32083dd06d5c3feaba328 (diff)
downloademacs-config-92f1b9689084c08de6898a6659dd1219542580f8.tar.gz
emacs-config-92f1b9689084c08de6898a6659dd1219542580f8.zip
Add Windows settings to oni-projectile
Diffstat (limited to 'oni-projectile.el')
-rw-r--r--oni-projectile.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-projectile.el b/oni-projectile.el
index 602e59e..d14b32f 100644
--- a/oni-projectile.el
+++ b/oni-projectile.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190227233727
+;; Version: 20190228220938
;; Package-Requires: (projectile ivy oni-data-dir)
;; This program is free software; you can redistribute it and/or modify
@@ -43,6 +43,12 @@
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
+(when (eq system-type 'windows-nt)
+ (setq projectile-enable-caching nil)
+ (setq projectile-generic-command "\"C:\\Program Files\\Git\\usr\\bin\\find.exe\" . -type d \"(\" -path \"*/node_modules\" -o -path \"*/upload-test\" -o -path \"*/dlls\" -o -path \"*/apps/*/img\" -o -path \"*/apps/*/video\" -o -path \"*/apps/*/font\" -o -path \"*/apps/*/content\" -o -path \"*/apps/*/favicons\" -o -path \"*/apps/*/pages.*\" -o -path \"*/.intl\" \")\" -prune -o -type f -print0")
+ (setq projectile-git-command "\"C:/Program Files/Git/bin/git.exe\" ls-files -zco --exclude-standard")
+ (setq projectile-indexing-method 'alien))
+
;;;###autoload(with-eval-after-load 'projectile (require 'oni-projectile))
;;;###autoload