Magit: Set list of repos in separate file for easier external parsing.

master
Pierre Neidhardt 2021-06-03 12:40:02 +02:00
parent 114564c9e1
commit b78998dbad
2 changed files with 10 additions and 4 deletions

View File

@ -214,10 +214,7 @@
;; Avoid conflict with WM.
(define-key magit-mode-map (kbd "s-<tab>") nil)
(setq magit-diff-refine-hunk 'all)
(setq magit-repository-directories '(("~/.password-store") ; TODO: Sync with homesync / homeinit?
("~/common-lisp" . 1)
("~/projects" . 1)
("~/.local/share/emacs/site-lisp" . 1)))
(require 'init-magit)
;; magit-todos can be slow on big projects. Use it manually.
;; (when (require 'magit-todos nil 'noerror)
;; (magit-todos-mode))

View File

@ -0,0 +1,9 @@
;; This file is meant to be loadable without dependencies.
;; This allows external programs to easily access the list of repository directories.
(setq magit-repository-directories '(("~/.password-store")
("~/common-lisp" . 1)
("~/projects" . 1)
("~/.local/share/emacs/site-lisp" . 1)))
(provide 'init-magit)