branch: elpa/alect-themes
commit 69045201a8597181509c71c770d0fbce398f0af5
Author: Fredrik Nyqvist <[email protected]>
Commit: Alex Kost <[email protected]>
Add support for 'diff-hl'
Co-authored-by: Alex Kost <[email protected]>
---
README.md | 1 +
alect-themes.el | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/README.md b/README.md
index fd2ff42..b9e13da 100644
--- a/README.md
+++ b/README.md
@@ -68,6 +68,7 @@ supported (themed):
- [company](http://company-mode.github.io/)
- [cperl](https://github.com/jrockway/cperl-mode)
- [debbugs](http://elpa.gnu.org/packages/debbugs.html)
+- [diff-hl](https://github.com/dgutov/diff-hl)
- [dictem](https:/github.com/cheusov/dictem)
- [EMMS](https://www.gnu.org/software/emms/)
- [Geiser](https:/github.com/jaor/geiser)
diff --git a/alect-themes.el b/alect-themes.el
index d0f14c0..5d024f1 100644
--- a/alect-themes.el
+++ b/alect-themes.el
@@ -712,6 +712,14 @@ For INVERT, see `alect-get-color'."
(diff-nonexistent ((,c :inherit diff-header
:foreground ,(gc 'gray))))
+ ;; diff-hl
+ (diff-hl-insert ((,c :foreground ,(gc 'fg+1)
+ :background ,(gc 'green-bg))))
+ (diff-hl-delete ((,c :inherit diff-hl-insert
+ :background ,(gc 'red-bg))))
+ (diff-hl-change ((,c :inherit diff-hl-insert
+ :background ,(gc 'blue-bg))))
+
;; dired
(dired-directory ((,c :inherit font-lock-function-name-face)))
(dired-flagged ((,c :foreground ,(gc 'red))))