37 lines
1.2 KiB
EmacsLisp
37 lines
1.2 KiB
EmacsLisp
;;; $DOOMDIR/+projects.el -*- lexical-binding: t; -*-
|
|
|
|
(defvar project-locations '(("~/ghq/" . 3)
|
|
("~/.dotfiles" . 0)
|
|
("~/configs" . 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.")
|
|
|
|
(use-package! projectile
|
|
:init
|
|
(setq projectile-auto-discover t)
|
|
(setq projectile-project-search-path project-locations))
|
|
|
|
(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))
|
|
|
|
(after! magit
|
|
(add-hook! 'after-save-hook #'magit-after-save-refresh-status)
|
|
(setq magit-save-repository-buffers t ; ask to save modified files in repo
|
|
magit-repository-directories project-locations))
|
|
|
|
(use-package! ghq)
|