diff options
| author | Juanma Barranquero | 2019-10-08 02:53:02 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2019-10-08 02:53:02 +0200 |
| commit | 32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e (patch) | |
| tree | 12c5e9814864dabfa0eb8c5769e7abbbd8fa4986 | |
| parent | 373ffc59317cb96e253a0b0939b921e9172b44ff (diff) | |
| download | emacs-32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e.tar.gz emacs-32a67a5cfbfb92a9f76a5caf1c4b84beffcb1d9e.zip | |
Set default colors for tick faces
* 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>.
| -rw-r--r-- | lisp/faces.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 58b6349ccfd..c789d3729e0 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -2391,7 +2391,11 @@ unwanted effects." | |||
| 2391 | :group 'display-line-numbers) | 2391 | :group 'display-line-numbers) |
| 2392 | 2392 | ||
| 2393 | (defface line-number-major-tick | 2393 | (defface line-number-major-tick |
| 2394 | '((t :inherit line-number)) | 2394 | '((((class color grayscale) (background light)) |
| 2395 | :foreground "grey55" :bold t) | ||
| 2396 | (((class color grayscale) (background dark)) | ||
| 2397 | :foreground "grey75" :bold t) | ||
| 2398 | (t :inherit line-number)) | ||
| 2395 | "Face for highlighting \"major ticks\" (as in a ruler). | 2399 | "Face for highlighting \"major ticks\" (as in a ruler). |
| 2396 | When `display-line-numbers-major-tick' is positive, highlight | 2400 | When `display-line-numbers-major-tick' is positive, highlight |
| 2397 | the line numbers of lines which are a multiple of its value. | 2401 | the line numbers of lines which are a multiple of its value. |
| @@ -2408,7 +2412,11 @@ unwanted effects." | |||
| 2408 | :group 'display-line-numbers) | 2412 | :group 'display-line-numbers) |
| 2409 | 2413 | ||
| 2410 | (defface line-number-minor-tick | 2414 | (defface line-number-minor-tick |
| 2411 | '((t :inherit line-number)) | 2415 | '((((class color grayscale) (background light)) |
| 2416 | :foreground "grey65" :bold t) | ||
| 2417 | (((class color grayscale) (background dark)) | ||
| 2418 | :foreground "grey55" :bold t) | ||
| 2419 | (t :inherit line-number)) | ||
| 2412 | "Face for highlighting \"minor ticks\" (as in a ruler). | 2420 | "Face for highlighting \"minor ticks\" (as in a ruler). |
| 2413 | When `display-line-numbers-minor-tick' is positive, highlight | 2421 | When `display-line-numbers-minor-tick' is positive, highlight |
| 2414 | the line numbers of lines which are a multiple of its value. | 2422 | the line numbers of lines which are a multiple of its value. |