[Misc] Give all known projectile projects to magit

This commit is contained in:
Daniel - 2017-08-04 17:50:46 +02:00
parent 91e99e075a
commit 85c96955f3
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 3 additions and 2 deletions

View File

@ -594,6 +594,7 @@ _h_ _l_ _o_k _y_ank
(add-to-list 'magit-no-confirm 'stage-all-changes)
(require 'projectile)
(setq magit-repository-directories
(mapcar
(lambda (dir)
@ -602,11 +603,11 @@ _h_ _l_ _o_k _y_ank
(lambda (project)
(unless (file-remote-p project)
(file-exists-p (concat project "/.git"))))
(projectile-relevant-known-projects))))))
projectile-known-projects)))))
(use-package projectile
:ensure projectile
:commands (projectile-relevant-known-projects projectile-mode)
:commands (projectile-mode)
:config (progn
(setq projectile-switch-project-action 'projectile-dired
projectile-completion-system 'ivy