[emacs] Load magit status when switching to a project

doom overrides projectile-switch-project-action for its workspace
behavior, so rather than update that, set the workspaces switch project
function.
This commit is contained in:
Correl Roush 2024-07-03 14:52:43 -04:00
parent a7549f211b
commit f87c3166d1

View file

@ -1363,7 +1363,11 @@ Pre-load Projectile with projects in my usual code directories.
(require 'dash) (require 'dash)
(require 'f) (require 'f)
(setq projectile-switch-project-action #'magit-status) ;; Load magit status when switching to a project
;;
;; doom overrides projectile-switch-project-action for its workspace behavior,
;; so rather than update that, set the workspaces switch project function.
(setq +workspaces-switch-project-function #'magit-status)
(let ((project-directories (-filter #'f-directory? (let ((project-directories (-filter #'f-directory?
'("~/code" '("~/code"
"~/git")))) "~/git"))))