about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-projectile.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-08-10 13:43:28 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-08-10 13:43:28 +0100
commitf184332a907e2387694e0fd16cd186bc228ce516 (patch)
tree56ebd90581e51cc0706c9a57a62671ed633f1d3a /emacs-prelude/personal/lisp/init-projectile.el
parentef218b37be439be8cb23f1eaea96f7b2b803e436 (diff)
downloaddotfiles-f184332a907e2387694e0fd16cd186bc228ce516.tar.gz
Add projectile-add-new-project
Diffstat (limited to 'emacs-prelude/personal/lisp/init-projectile.el')
-rw-r--r--emacs-prelude/personal/lisp/init-projectile.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs-prelude/personal/lisp/init-projectile.el b/emacs-prelude/personal/lisp/init-projectile.el
index d056bb8..e46e221 100644
--- a/emacs-prelude/personal/lisp/init-projectile.el
+++ b/emacs-prelude/personal/lisp/init-projectile.el
@@ -25,5 +25,9 @@
   :custom
   (projectile-switch-project-action 'projectile-commander))
 
+(defun projectile-add-new-project (project-root)
+  (interactive (list (read-directory-name "Select project directory: " "~/src/"))) ;; TODO var
+  (projectile-add-known-project project-root)
+  (projectile-persp-switch-project project-root)) ;; TODO var
 
 (provide 'init-projectile)