mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-21 11:08:38 +00:00
[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:
parent
a7549f211b
commit
f87c3166d1
1 changed files with 5 additions and 1 deletions
|
@ -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"))))
|
||||||
|
|
Loading…
Reference in a new issue