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.")
|
|
|
|
|
2022-11-19 14:59:16 -05:00
|
|
|
(use-package! projectile
|
|
|
|
:init
|
|
|
|
(setq projectile-auto-discover t)
|
2022-08-16 20:48:21 -04:00
|
|
|
(setq projectile-project-search-path project-locations))
|
2022-03-07 22:43:08 -05:00
|
|
|
|
2023-05-02 12:38:18 -04:00
|
|
|
(use-package! treemacs
|
|
|
|
:init
|
|
|
|
(setq treemacs-missing-project-action 'remove)
|
|
|
|
:config
|
|
|
|
(treemacs-project-follow-mode +1)
|
|
|
|
(treemacs-hide-gitignored-files-mode +1))
|
|
|
|
|
|
|
|
(after! treemacs
|
|
|
|
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
|
|
|
|
|
|
|
|
(use-package treemacs-persp ;;treemacs-perspective if you use perspective.el vs. persp-mode
|
|
|
|
:after (treemacs persp-mode) ;;or perspective vs. persp-mode
|
|
|
|
:ensure t
|
|
|
|
:config (treemacs-set-scope-type 'Perspectives))
|
|
|
|
|
2022-03-07 22:43:08 -05:00
|
|
|
(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)
|