summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.el b/init.el
index f1d5bbb..64ce1cb 100644
--- a/init.el
+++ b/init.el
@@ -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