From 91fa7607d9f4b4545b2a924ff75ccf413b9ca069 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 14 Mar 2021 19:34:48 -0700 Subject: emacs: use `magit-repos' The module `magit-repos' can list the status of git repositories under a given path. Since all my repositories are under `~/workspace`, it's easy to use `M-x magit-list-repositories` to get a buffer with all my repositories, and their status (are they dirty, etc). --- emacs/custom/fcuny-git.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/custom') diff --git a/emacs/custom/fcuny-git.el b/emacs/custom/fcuny-git.el index a6a3829..ac9b837 100644 --- a/emacs/custom/fcuny-git.el +++ b/emacs/custom/fcuny-git.el @@ -57,6 +57,12 @@ magit-insert-diff-filter-header magit-insert-head-branch-header))) +(use-package magit-repos + :ensure nil + :after (magit) + :custom + (magit-repository-directories '(("~/workspace" . 1)))) + (use-package git-commit :ensure t :after magit -- cgit 1.4.1