dotfiles/emacs/.emacs.d/config/init-projects.el

20 lines
484 B
EmacsLisp
Raw Normal View History

2021-02-21 02:59:11 +00:00
;; -*- lexical-binding: t; -*-
;; Project management
(use-package projectile
:config
(projectile-mode 1)
2021-02-22 22:07:20 +00:00
(leader-def-key "p" '(projectile-command-map :which-key "projectile"))
(defun consult-projectile-ripgrep ()
(interactive)
(let ((dir (or (projectile-project-root) default-directory)))
(consult-ripgrep dir))))
2021-02-21 19:47:53 +00:00
;; Ripgrep integration
(use-package projectile-ripgrep
2021-02-22 22:07:20 +00:00
:after projectile
:config
(evil-collection-ripgrep-setup))
2021-02-21 19:47:53 +00:00
(provide 'init-projects)