From d7862cc24ade8fd940e76d61a0ef840745b6ef47 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 27 Jun 2020 22:16:21 -0400 Subject: [PATCH] Automatically add repos to projectile. This will selectively ignore any directories that don't exist. --- emacs/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/config.el b/emacs/config.el index 6e62048..ae1b9c4 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -17,8 +17,8 @@ ;; Have projectile automatically check code. -;(setq projectile-project-search-path '("~/src/" "~/Code/")) -(add-to-list 'projectile-project-search-path "~/src/") +(setq projectile-project-search-path + (seq-filter 'file-directory-p '("~/src" "~/Code" "~/opt"))) (load! "+mail") (load! "+org")