summary refs log tree commit diff
path: root/emacs/custom/fcuny-git.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-03-14 19:34:48 -0700
committerFranck Cuny <franck@fcuny.net>2021-03-14 19:34:48 -0700
commit91fa7607d9f4b4545b2a924ff75ccf413b9ca069 (patch)
tree9ecf4a0075b27cbc0bb0e9bb9bd96c7891ef3f33 /emacs/custom/fcuny-git.el
parentemacs: show paren (diff)
downloademacs.d-91fa7607d9f4b4545b2a924ff75ccf413b9ca069.tar.gz
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).
Diffstat (limited to 'emacs/custom/fcuny-git.el')
-rw-r--r--emacs/custom/fcuny-git.el6
1 files changed, 6 insertions, 0 deletions
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