From fff29fe56f97a147d94b5c8105f702e60115822a Mon Sep 17 00:00:00 2001 From: earnest ma Date: Mon, 7 Mar 2022 22:43:08 -0500 Subject: [PATCH] doom: set list of magit repositories to projectiles --- doom/.config/doom/+projects.el | 17 +++++++++++++++++ doom/.config/doom/config.el | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 doom/.config/doom/+projects.el 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")