]> git.eshelyaron.com Git - emacs.git/commitdiff
Set default colors for tick faces
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 8 Oct 2019 00:53:02 +0000 (02:53 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 8 Oct 2019 00:53:02 +0000 (02:53 +0200)
* lisp/faces.el (line-number-major-tick, line-number-minor-tick):
Set default color different from `line-number' so after customizing
the tick number variables, the ticks are immediately visible.
Suggested by Juri Linkov <juri@linkov.net>.

lisp/faces.el

index 58b6349ccfd614c8d43f6de51d8b60dce03a067b..c789d3729e02ddcc727caa0d27e9e51dbcbe320c 100644 (file)
@@ -2391,7 +2391,11 @@ unwanted effects."
   :group 'display-line-numbers)
 
 (defface line-number-major-tick
-  '((t :inherit line-number))
+  '((((class color grayscale) (background light))
+     :foreground "grey55" :bold t)
+    (((class color grayscale) (background dark))
+     :foreground "grey75" :bold t)
+    (t :inherit line-number))
   "Face for highlighting \"major ticks\" (as in a ruler).
 When `display-line-numbers-major-tick' is positive, highlight
 the line numbers of lines which are a multiple of its value.
@@ -2408,7 +2412,11 @@ unwanted effects."
   :group 'display-line-numbers)
 
 (defface line-number-minor-tick
-  '((t :inherit line-number))
+  '((((class color grayscale) (background light))
+     :foreground "grey65" :bold t)
+    (((class color grayscale) (background dark))
+     :foreground "grey55" :bold t)
+    (t :inherit line-number))
   "Face for highlighting \"minor ticks\" (as in a ruler).
 When `display-line-numbers-minor-tick' is positive, highlight
 the line numbers of lines which are a multiple of its value.