doom: set list of magit repositories to projectiles

main
earnest ma 2022-03-07 22:43:08 -05:00
parent 1bf9fd108d
commit fff29fe56f
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,17 @@
;;; ../../.dotfiles/doom/.config/doom/+projects.el -*- lexical-binding: t; -*-
;;; Project management
(defvar project-locations '(("~/ghq/" . 3)
("~/.dotfiles" . 0)
("~/ansible" . 0))
"Where all my projects are located.
Most of them are managed using `ghq' in ~/ghq/, however there are also some
projects in other locations.")
(after! projectile
(setq projectile-project-search-path project-locations))
(after! magit
(setq magit-save-repository-buffers t
magit-repository-directories project-locations))

View File

@ -41,5 +41,4 @@
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;; Projects
(setq projectile-project-search-path '(("~/ghq/" . 3)))
(load! "+projects")