From 35ad69b66634963e6518ae50b9aaeb93d4807426 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 9 Jun 2022 03:47:00 +0100 Subject: diff-hl-margin-mode for the terminal --- init.el | 5 +++-- 1 file 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 -- cgit v1.2.3