branch: elpa/monokai-theme
commit 5a3fa999f4f1ab2eeabf13a78d26eba7c1716051
Merge: 01400f1 2cc0b14
Author: Kelvin Smith <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #91 from seagle0128/master
    
    Support `line-number` faces of Emacs 26.
---
 monokai-theme.el | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/monokai-theme.el b/monokai-theme.el
index 9a54674..9ab18be 100644
--- a/monokai-theme.el
+++ b/monokai-theme.el
@@ -3246,6 +3246,26 @@ Also affects 'linum-mode' background."
                                         :inherit default
                                         :underline nil))))
 
+   ;; line-number (>= Emacs26)
+   `(line-number
+     ((,monokai-class (:foreground ,monokai-line-number
+                                   :background ,monokai-fringe-bg
+                                   :inherit default
+                                   :underline nil))
+      (,monokai-256-class (:foreground ,monokai-256-line-number
+                                        :background ,monokai-256-fringe-bg
+                                        :inherit default
+                                        :underline nil))))
+   `(line-number-current-line
+     ((,monokai-class (:foreground ,monokai-foreground
+                                   :background ,monokai-fringe-bg
+                                   :inherit default
+                                   :underline nil))
+      (,monokai-256-class (:foreground ,monokai-256-foreground
+                                        :background ,monokai-256-fringe-bg
+                                        :inherit default
+                                        :underline nil))))
+
    ;; linum-relative-current-face
    `(linum-relative-current-face
      ((,monokai-class (:foreground ,monokai-line-number

Reply via email to