summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-10-14 02:28:29 -0400
committerKyle Meyer <kyle@kyleam.com>2015-10-14 02:28:29 -0400
commit5ddd1278f749d8d134d890f7c29816989550638a (patch)
treeceee9d6bd2530ff29607708ced6b8edd609d2c2d /lisp
parent7c97ed0658254fb82c42ceb1442dc192d7107142 (diff)
downloademacs.d-5ddd1278f749d8d134d890f7c29816989550638a.tar.gz
Set projectile-ignored-project-function
Diffstat (limited to 'lisp')
-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)