core-project: use default projectile project root files

This commit is contained in:
Henrik Lissner 2017-09-19 15:08:24 +02:00
parent 42fec8494d
commit d160da2c57
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -14,9 +14,6 @@ state are passed in.")
projectile-indexing-method 'alien projectile-indexing-method 'alien
projectile-known-projects-file (concat doom-cache-dir "projectile.projects") projectile-known-projects-file (concat doom-cache-dir "projectile.projects")
projectile-require-project-root nil projectile-require-project-root nil
projectile-project-root-files
'(".git" ".hg" ".svn" ".project" "package.json" "setup.py" "Gemfile"
"build.gradle")
projectile-other-file-alist projectile-other-file-alist
(append '(("less" "css") (append '(("less" "css")
("styl" "css") ("styl" "css")
@ -33,6 +30,9 @@ state are passed in.")
(append (list doom-local-dir ".sync") (append (list doom-local-dir ".sync")
projectile-globally-ignored-directories)) projectile-globally-ignored-directories))
;; More generic project root file than .projectile
(push ".project" projectile-project-root-files-bottom-up)
;; Projectile root-searching functions can cause an infinite loop on TRAMP ;; Projectile root-searching functions can cause an infinite loop on TRAMP
;; connections, so disable them. ;; connections, so disable them.
(defun doom*projectile-locate-dominating-file (orig-fn &rest args) (defun doom*projectile-locate-dominating-file (orig-fn &rest args)