[Misc] Give all known projectile projects to magit
This commit is contained in:
parent
91e99e075a
commit
85c96955f3
5
init.el
5
init.el
|
@ -594,6 +594,7 @@ _h_ _l_ _o_k _y_ank
|
||||||
|
|
||||||
(add-to-list 'magit-no-confirm 'stage-all-changes)
|
(add-to-list 'magit-no-confirm 'stage-all-changes)
|
||||||
|
|
||||||
|
(require 'projectile)
|
||||||
(setq magit-repository-directories
|
(setq magit-repository-directories
|
||||||
(mapcar
|
(mapcar
|
||||||
(lambda (dir)
|
(lambda (dir)
|
||||||
|
@ -602,11 +603,11 @@ _h_ _l_ _o_k _y_ank
|
||||||
(lambda (project)
|
(lambda (project)
|
||||||
(unless (file-remote-p project)
|
(unless (file-remote-p project)
|
||||||
(file-exists-p (concat project "/.git"))))
|
(file-exists-p (concat project "/.git"))))
|
||||||
(projectile-relevant-known-projects))))))
|
projectile-known-projects)))))
|
||||||
|
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:ensure projectile
|
:ensure projectile
|
||||||
:commands (projectile-relevant-known-projects projectile-mode)
|
:commands (projectile-mode)
|
||||||
:config (progn
|
:config (progn
|
||||||
(setq projectile-switch-project-action 'projectile-dired
|
(setq projectile-switch-project-action 'projectile-dired
|
||||||
projectile-completion-system 'ivy
|
projectile-completion-system 'ivy
|
||||||
|
|
Loading…
Reference in New Issue