project: automatically add some common directories if present

This commit is contained in:
Evie Litherland-Smith 2024-05-13 07:53:06 +01:00
parent 8d78ddb1ae
commit af3caaeaba

10
init.el
View file

@ -603,8 +603,6 @@ Uses `my/projects-directory' to find correct directory"
(emms-cache-enable)
(add-hook 'emms-player-started-hook #'emms-show))
(use-package org
:custom
(org-directory "~/Documents/Org")
@ -974,6 +972,14 @@ Uses `my/projects-directory' to find correct directory"
(project-eshell "Eshell")
(magit-project-status "Magit")))
(use-package project
:config
(if (file-exists-p "~/.config/")
(project-remember-projects-under "~/.config/" t))
(if (file-exists-p "~/Projects/")
(project-remember-projects-under "~/Projects/" t))
(project-forget-zombie-projects))
(use-package magit
:bind (("C-c g g" . magit-status)
("C-c g d" . magit-dispatch)