diff --git a/doom/.config/doom/+projects.el b/doom/.config/doom/+projects.el new file mode 100644 index 0000000..09179ed --- /dev/null +++ b/doom/.config/doom/+projects.el @@ -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)) diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index f195a41..a838fdd 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -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")