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

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

[elpa] externals/modus-vivendi-theme e03e9f2 095/110: Add {major, minor}


From: Stefan Monnier
Subject: [elpa] externals/modus-vivendi-theme e03e9f2 095/110: Add {major, minor}-tick for DISPLAY-LINE-NUMBERS
Date: Wed, 29 Apr 2020 21:40:15 -0400 (EDT)

branch: externals/modus-vivendi-theme
commit e03e9f25884a256b43a2ab192b93e0675907f3e3
Author: Protesilaos Stavrou <address@hidden>
Commit: Protesilaos Stavrou <address@hidden>

    Add {major,minor}-tick for DISPLAY-LINE-NUMBERS
    
    These only apply to >= Emacs 27.  The faces are visible after the user
    configures the relevant variables.  Such as:
    
      (setq display-line-numbers-major-tick 20)
      (setq display-line-numbers-minor-tick 5)
---
 modus-operandi-theme.el | 4 ++++
 modus-vivendi-theme.el  | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 6fc73f6..983d488 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -2031,6 +2031,10 @@ AMOUNT is a customisation option."
    ;;;; line numbers (display-line-numbers-mode and global variant)
    `(line-number ((,class (:background ,bg-dim :foreground ,fg-alt))))
    `(line-number-current-line ((,class (:background ,bg-active :foreground 
,fg-active :weight bold))))
+   (when (>= emacs-major-version 27)
+     `(line-number-major-tick ((,class (:inherit modus-theme-special-calm)))))
+   (when (>= emacs-major-version 27)
+     `(line-number-minor-tick ((,class (:inherit modus-theme-special-mild)))))
    ;;;; lsp-mode
    `(lsp-face-highlight-read ((,class (:inherit modus-theme-subtle-blue 
:underline t))))
    `(lsp-face-highlight-textual ((,class (:inherit modus-theme-subtle-blue))))
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index bbfba66..bd87aa2 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -2031,6 +2031,10 @@ AMOUNT is a customisation option."
    ;;;; line numbers (display-line-numbers-mode and global variant)
    `(line-number ((,class (:background ,bg-dim :foreground ,fg-alt))))
    `(line-number-current-line ((,class (:background ,bg-active :foreground 
,fg-active :weight bold))))
+   (when (>= emacs-major-version 27)
+     `(line-number-major-tick ((,class (:inherit modus-theme-special-calm)))))
+   (when (>= emacs-major-version 27)
+     `(line-number-minor-tick ((,class (:inherit modus-theme-special-mild)))))
    ;;;; lsp-mode
    `(lsp-face-highlight-read ((,class (:inherit modus-theme-subtle-blue 
:underline t))))
    `(lsp-face-highlight-textual ((,class (:inherit modus-theme-subtle-blue))))



reply via email to

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