summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-projectile.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/init-projectile.el b/lisp/init-projectile.el
index 2a20e7f..67f37da 100644
--- a/lisp/init-projectile.el
+++ b/lisp/init-projectile.el
@@ -23,6 +23,12 @@ end up in the project if the buffers are now dead."
(let ((projectile-switch-project-action 'km/projectile-maybe-restore-thing))
(projectile-switch-project)))
+(defun km/projectile-ignore-directory-p (name)
+ (or (file-remote-p name)
+ (string-prefix-p "/tmp/" name)))
+
+(setq projectile-ignored-project-function #'km/projectile-ignore-directory-p)
+
(defun km/projectile-open-external-terminal-in-root ()
"Run `km/open-external-terminal' in project root."
(interactive)