diff options
Diffstat (limited to 'emacs-prelude/personal/lisp/init-projectile.el')
-rw-r--r-- | emacs-prelude/personal/lisp/init-projectile.el | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/emacs-prelude/personal/lisp/init-projectile.el b/emacs-prelude/personal/lisp/init-projectile.el deleted file mode 100644 index e46e221..0000000 --- a/emacs-prelude/personal/lisp/init-projectile.el +++ /dev/null @@ -1,33 +0,0 @@ -(prelude-require-packages '(perspective persp-projectile ripgrep)) - -(use-package perspective - :init (persp-mode) - :custom (persp-modestring-short t)) - -(use-package persp-projectile) - -(use-package projectile - :diminish - :config - (def-projectile-commander-method ?B - "consult-buffer" - (progn - (setq unread-command-events (listify-key-sequence "p ")) - (consult-buffer))) - (def-projectile-commander-method ?r - "consult-ripgrep" - (consult-ripgrep)) - (def-projectile-commander-method ?p - "DWIM" - (cond ((> (length (projectile-project-buffer-names)) 4) (projectile-switch-to-buffer)) ;; TODO consult-buffer - ((> (length (projectile-recentf-files)) 0) (projectile-recentf)) - (t (projectile-find-file)))) - :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) |