mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(version-control): use diff-hl-margin-mode when running Emacs in a terminal
This commit is contained in:
@@ -90,6 +90,17 @@
|
||||
:foreground (doom-blend 'vc-modified 'bg 0.7)
|
||||
:background (doom-blend 'vc-modified 'bg 0.2)))
|
||||
|
||||
(with-eval-after-load 'diff-hl-margin
|
||||
(set-face-attribute 'diff-hl-margin-insert nil
|
||||
:foreground (doom-blend 'vc-added 'bg 0.6)
|
||||
:background (doom-blend 'vc-added 'bg 0.1))
|
||||
(set-face-attribute 'diff-hl-margin-delete nil
|
||||
:foreground (doom-blend 'vc-deleted 'bg 0.7)
|
||||
:background (doom-blend 'vc-deleted 'bg 0.1))
|
||||
(set-face-attribute 'diff-hl-margin-change nil
|
||||
:foreground (doom-blend 'vc-modified 'bg 0.5)
|
||||
:background (doom-blend 'vc-modified 'bg 0.1)))
|
||||
|
||||
(with-eval-after-load 'hideshowvis
|
||||
(set-face-attribute 'hideshowvis-hidable-face nil
|
||||
:foreground (doom-color 'base7)))
|
||||
|
||||
@@ -18,7 +18,11 @@
|
||||
:init
|
||||
(defun siren-turn-on-diff-hl-mode ()
|
||||
(turn-on-diff-hl-mode)
|
||||
(diff-hl-flydiff-mode 1)))
|
||||
(diff-hl-flydiff-mode 1))
|
||||
|
||||
:config
|
||||
(if (not (window-system))
|
||||
(diff-hl-margin-mode 1)))
|
||||
|
||||
(provide 'siren-diff-hl)
|
||||
;;; siren-diff-hl.el ends here
|
||||
|
||||
Reference in New Issue
Block a user