Configure diff-hl
This commit is contained in:
parent
200be29c32
commit
8960f44c3b
1 changed files with 11 additions and 8 deletions
|
|
@ -121,14 +121,15 @@
|
||||||
(denote-rename-buffer-mode 1))
|
(denote-rename-buffer-mode 1))
|
||||||
|
|
||||||
(use-package diff-hl
|
(use-package diff-hl
|
||||||
:hook ((prog-mode . diff-hl-mode)
|
:init
|
||||||
|
(global-diff-hl-mode 1)
|
||||||
|
(diff-hl-flydiff-mode 1)
|
||||||
|
:hook
|
||||||
(dired-mode . diff-hl-dired-mode)
|
(dired-mode . diff-hl-dired-mode)
|
||||||
(magit-post-refresh . diff-hl-magit-post-refresh))
|
(vc-checkin . diff-hl-update)
|
||||||
:config
|
:config
|
||||||
(diff-hl-flydiff-mode)
|
|
||||||
(unless (display-graphic-p)
|
(unless (display-graphic-p)
|
||||||
(diff-hl-margin-mode 1))
|
(diff-hl-margin-mode 1)))
|
||||||
(global-diff-hl-mode))
|
|
||||||
|
|
||||||
(use-package dired
|
(use-package dired
|
||||||
:init
|
:init
|
||||||
|
|
@ -436,8 +437,10 @@
|
||||||
(global-ligature-mode t))
|
(global-ligature-mode t))
|
||||||
|
|
||||||
(use-package magit
|
(use-package magit
|
||||||
:defer t
|
:after (nerd-icons diff-hl)
|
||||||
:after nerd-icons
|
:hook
|
||||||
|
(magit-post-refresh-hook . diff-hl-magit-post-refresh)
|
||||||
|
(magit-post-refresh . diff-hl-magit-post-refresh)
|
||||||
:custom
|
:custom
|
||||||
(magit-format-file-function #'magit-format-file-nerd-icons)
|
(magit-format-file-function #'magit-format-file-nerd-icons)
|
||||||
(magit-process-connection-type nil))
|
(magit-process-connection-type nil))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue