From e252ee61e724ee275ed6ec2ece105625f5447ad4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 10 Nov 2019 01:39:30 -0500 Subject: [PATCH] cli/doctor: fix HOME project root detection --- core/cli/doctor.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index bf6ed3a7e..dcc07ccd3 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -110,12 +110,11 @@ in." (unless (executable-find "rg") (warn! "Couldn't find the `rg' binary either; project file searches will be even slower"))) - (let ((default-directory "~")) - (require 'projectile) - (when (cl-find-if #'projectile-file-exists-p projectile-project-root-files-bottom-up) - (warn! "Your $HOME is recognized as a project root") - (explain! "Doom will disable bottom-up root search, which may reduce the accuracy of project\n" - "detection."))) + (require 'projectile) + (when (projectile-project-root "~") + (warn! "Your $HOME is recognized as a project root") + (explain! "Doom will disable bottom-up root search, which may reduce the accuracy of project\n" + "detection.")) ;; There should only be one (when (and (file-equal-p doom-private-dir "~/.config/doom")