-
Notifications
You must be signed in to change notification settings - Fork 365
/
version-control-config.el
51 lines (41 loc) · 1.76 KB
/
version-control-config.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;; ---------------------------------------
;; Version Control configuration - Git, etc
;;
;; https://develop.spacemacs.org/layers/+source-control/version-control/README.html
;; https://develop.spacemacs.org/layers/+source-control/git/README.html
;; Git Delta guide - https://dandavison.github.io/delta/
;; ---------------------------------------
;; ---------------------------------------
;; Spacemacs as $EDITOR (or $GIT_EDITOR) for commit messages
;; for `git commit` on command line
;; (global-git-commit-mode t)
;; ---------------------------------------
;; ---------------------------------------
;; Magit - forge configuration
;; Set locations of all your Git repositories
;; with a number to define how many sub-directories to search
;; `SPC g L' - list all Git repositories in the defined paths,
(setq magit-repository-directories
'(("~/projects/" . 2)))
;; path for developer tokens (default ~/.authinfo)
;; Use XDG_CONFIG_HOME location or HOME
(setq auth-sources (list
(concat (getenv "XDG_CONFIG_HOME") "/authinfo.gpg")
"~/.authinfo.gpg"))
;; Number of topics shown, open and closed values
;; - negative number toggles view of closed topics
;; using `SPC SPC forge-toggle-closed-visibility'
;; - set closed to 0 to never show closed issues
;; (setq forge-topic-list-limit '(100 . 0))
(setq forge-topic-list-limit '(100 . -10))
;; GitHub user and organisation accounts owned
;; used by @ c f to create a fork
(setq forge-owned-accounts
'(("practicalli" "practicalli-john"
"ClojureBridgeLondon" "ldnclj"
"clojure-hacks")))
;; Blacklist Forge accounts
;; - over-rides forge-owned-accounts
;; (setq forge-owned-blacklist
;; '(("bad-hacks" "really-bad-hacks")))
;; ---------------------------------------