diff options
| author | Alexander Gramiak | 2017-10-07 15:02:01 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2017-10-08 17:53:38 -0600 |
| commit | e2150d994a66c580ff9fabeed44b8fa5146c7e65 (patch) | |
| tree | 7baaea905754ae97c40c395defc7a63c64dae38a | |
| parent | 89b0023044d24d67a595213f82e28d213db45413 (diff) | |
| download | emacs-e2150d994a66c580ff9fabeed44b8fa5146c7e65.tar.gz emacs-e2150d994a66c580ff9fabeed44b8fa5146c7e65.zip | |
Add line-number faces to the display-line-numbers group
See https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00151.html
and its resulting thread.
* lisp/display-line-numbers.el (display-line-numbers): Add to the
convenience group.
* lisp/faces.el (line-number):
(line-number-current-line): Add to the display-line-numbers group.
| -rw-r--r-- | lisp/display-line-numbers.el | 1 | ||||
| -rw-r--r-- | lisp/faces.el | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lisp/display-line-numbers.el b/lisp/display-line-numbers.el index 3b6b101de49..15e04279156 100644 --- a/lisp/display-line-numbers.el +++ b/lisp/display-line-numbers.el | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | (defgroup display-line-numbers nil | 37 | (defgroup display-line-numbers nil |
| 38 | "Display line numbers in the buffer." | 38 | "Display line numbers in the buffer." |
| 39 | :group 'convenience | ||
| 39 | :group 'display) | 40 | :group 'display) |
| 40 | 41 | ||
| 41 | (defcustom display-line-numbers-type t | 42 | (defcustom display-line-numbers-type t |
diff --git a/lisp/faces.el b/lisp/faces.el index 24ab1fa4f0c..a5f1d1dd328 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -2483,7 +2483,8 @@ monospaced font, otherwise line numbers will not line up, | |||
| 2483 | and text lines might move horizontally as you move through | 2483 | and text lines might move horizontally as you move through |
| 2484 | the buffer." | 2484 | the buffer." |
| 2485 | :version "26.1" | 2485 | :version "26.1" |
| 2486 | :group 'basic-faces) | 2486 | :group 'basic-faces |
| 2487 | :group 'display-line-numbers) | ||
| 2487 | 2488 | ||
| 2488 | (defface line-number-current-line | 2489 | (defface line-number-current-line |
| 2489 | '((t :inherit line-number)) | 2490 | '((t :inherit line-number)) |
| @@ -2497,7 +2498,8 @@ the buffer. Similarly, making this face's font different | |||
| 2497 | from that of the `line-number' face could produce such | 2498 | from that of the `line-number' face could produce such |
| 2498 | unwanted effects." | 2499 | unwanted effects." |
| 2499 | :version "26.1" | 2500 | :version "26.1" |
| 2500 | :group 'basic-faces) | 2501 | :group 'basic-faces |
| 2502 | :group 'display-line-numbers) | ||
| 2501 | 2503 | ||
| 2502 | (defface escape-glyph | 2504 | (defface escape-glyph |
| 2503 | '((((background dark)) :foreground "cyan") | 2505 | '((((background dark)) :foreground "cyan") |