emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/alect-themes 6904520 257/269: Add support for 'diff-hl'


From: ELPA Syncer
Subject: [nongnu] elpa/alect-themes 6904520 257/269: Add support for 'diff-hl'
Date: Thu, 21 Oct 2021 17:59:31 -0400 (EDT)

branch: elpa/alect-themes
commit 69045201a8597181509c71c770d0fbce398f0af5
Author: Fredrik Nyqvist <fredrik.nyqvist94@gmail.com>
Commit: Alex Kost <alezost@gmail.com>

    Add support for 'diff-hl'
    
    Co-authored-by: Alex Kost <alezost@gmail.com>
---
 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]