2022-06-12 14:13:22 -04:00
|
|
|
;;; $DOOMDIR/+projects.el -*- lexical-binding: t; -*-
|
2022-03-07 22:43:08 -05:00
|
|
|
|
|
|
|
(defvar project-locations '(("~/ghq/" . 3)
|
|
|
|
("~/.dotfiles" . 0)
|
2022-06-12 14:13:22 -04:00
|
|
|
("~/configs" . 0))
|
2022-03-07 22:43:08 -05:00
|
|
|
"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
|
2022-06-13 09:35:59 -04:00
|
|
|
(add-hook! 'after-save-hook #'magit-after-save-refresh-status)
|
|
|
|
(setq magit-save-repository-buffers t ; ask to save modified files in repo
|
2022-03-07 22:43:08 -05:00
|
|
|
magit-repository-directories project-locations))
|
2022-03-08 09:12:35 -05:00
|
|
|
|
|
|
|
(use-package! ghq)
|