diff options
-rw-r--r-- | init.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1931,10 +1931,11 @@ (map-keymap (lambda (_k cmd) (put cmd 'repeat-map 'diff-hl-command-map)) diff-hl-command-map) - (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) - (when (jao-colors-scheme-dark-p) (diff-hl-margin-mode 1))) + (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)) (global-diff-hl-mode 1) +(when (or (not (display-graphic-p)) (jao-colors-scheme-dark-p)) + (diff-hl-margin-mode 1)) ;;;; magit and forge (use-package magit |