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

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

[nongnu] elpa/spacemacs-theme 16ae2301ac 270/336: Set line-number face u


From: ELPA Syncer
Subject: [nongnu] elpa/spacemacs-theme 16ae2301ac 270/336: Set line-number face unconditionally
Date: Fri, 14 Jan 2022 10:59:44 -0500 (EST)

branch: elpa/spacemacs-theme
commit 16ae2301acfb9bb23b8164f0b2315f72cceb03de
Author: bmag <bmagamb@gmail.com>
Commit: bmag <bmagamb@gmail.com>

    Set line-number face unconditionally
    
    The old implementation didn't actually set the `line-number` face at
    all. Also, added missing inheritance - fixes a bug where scaling the
    text (i.e. via `scale-text-adjust`) wouldn't scale the size of current
    line number.
---
 spacemacs-common.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/spacemacs-common.el b/spacemacs-common.el
index 9b1c569e4f..ef279547f0 100644
--- a/spacemacs-common.el
+++ b/spacemacs-common.el
@@ -594,9 +594,8 @@ to 'auto, tags may not be properly aligned. "
      `(linum ((,class (:foreground ,lnum :background ,bg2 :inherit default))))
 
 ;;;;; display-line-numbers-mode (Emacs 26+)
-     (when (>= emacs-major-version 26)
-       `(line-number ((,class (:foreground ,lnum :background ,bg2))))
-       `(line-number-current-line ((,class (:foreground ,base :background 
,bg2)))))
+     `(line-number ((,class (:foreground ,lnum :background ,bg2 :inherit 
default))))
+     `(line-number-current-line ((,class (:foreground ,base :background ,bg2 
:inherit line-number))))
 
 ;;;;; linum-relative
      `(linum-relative-current-face ((,class (:foreground ,comp))))



reply via email to

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