From f184332a907e2387694e0fd16cd186bc228ce516 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 10 Aug 2021 13:43:28 +0100 Subject: Add projectile-add-new-project --- emacs-prelude/personal/lisp/init-projectile.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs-prelude/personal/lisp') 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) -- cgit 1.4.1-2-gfad0