blob: 6ea08a938185693d3da7d6ce8112d1a12996c664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
(use-package magit
:ensure t
:hook ((git-commit-mode . flyspell-mode)
(git-commit-mode . magit-git-commit-insert-branch))
:bind ( :map project-prefix-map
("g" . magit-project-status)))
(use-package diff-hl
:defer t
:ensure t
:hook
(find-file . (lambda ()
(global-diff-hl-mode) ;; Enable Diff-HL mode for all files.
(diff-hl-flydiff-mode) ;; Automatically refresh diffs.
(diff-hl-margin-mode))) ;; Show diff indicators in the margin.
:custom
(diff-hl-side 'left) ;; Set the side for diff indicators.
(diff-hl-margin-symbols-alist '((insert . "┃") ;; Customize symbols for each change type.
(delete . "-")
(change . "┃")
(unknown . "┆")
(ignored . "i"))))
(provide 'git-config)
|