diff options
Diffstat (limited to 'lisp/faces.el')
| -rw-r--r-- | lisp/faces.el | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 9a8a1344caf..97c32165b9c 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -102,11 +102,16 @@ a font height that isn't optimal." | |||
| 102 | ;; Monospace Serif is an Emacs invention, intended to work around | 102 | ;; Monospace Serif is an Emacs invention, intended to work around |
| 103 | ;; portability problems when using Courier. It should work well | 103 | ;; portability problems when using Courier. It should work well |
| 104 | ;; when combined with Monospaced and with other standard fonts. | 104 | ;; when combined with Monospaced and with other standard fonts. |
| 105 | ;; One of its uses is for 'tex-verbatim' and 'Info-quoted' faces, | ||
| 106 | ;; so the result must be different from the default face's font, | ||
| 107 | ;; and must be monospaced. | ||
| 105 | ("Monospace Serif" | 108 | ("Monospace Serif" |
| 106 | 109 | ||
| 107 | ;; This looks good on GNU/Linux. | 110 | ;; This looks good on GNU/Linux. |
| 108 | "Courier 10 Pitch" | 111 | "Courier 10 Pitch" |
| 109 | ;; This looks good on MS-Windows and OS X. | 112 | ;; This looks good on MS-Windows and OS X. Note that this is |
| 113 | ;; actually a sans-serif font, but it's here for lack of a better | ||
| 114 | ;; alternative. | ||
| 110 | "Consolas" | 115 | "Consolas" |
| 111 | ;; This looks good on macOS. "Courier" looks good too, but is | 116 | ;; This looks good on macOS. "Courier" looks good too, but is |
| 112 | ;; jagged on GNU/Linux and so is listed later as "courier". | 117 | ;; jagged on GNU/Linux and so is listed later as "courier". |
| @@ -2465,6 +2470,33 @@ If you set `term-file-prefix' to nil, this function does nothing." | |||
| 2465 | :version "21.1" | 2470 | :version "21.1" |
| 2466 | :group 'basic-faces) | 2471 | :group 'basic-faces) |
| 2467 | 2472 | ||
| 2473 | ;; Definition stolen from linum.el. | ||
| 2474 | (defface line-number | ||
| 2475 | '((t :inherit (shadow default))) | ||
| 2476 | "Face for displaying line numbers. | ||
| 2477 | This face is used when `display-line-numbers' is non-nil. | ||
| 2478 | |||
| 2479 | If you customize the font of this face, make sure it is a | ||
| 2480 | monospaced font, otherwise line numbers will not line up, | ||
| 2481 | and text lines might move horizontally as you move through | ||
| 2482 | the buffer." | ||
| 2483 | :version "26.1" | ||
| 2484 | :group 'basic-faces) | ||
| 2485 | |||
| 2486 | (defface line-number-current-line | ||
| 2487 | '((t :inherit line-number)) | ||
| 2488 | "Face for displaying the current line number. | ||
| 2489 | This face is used when `display-line-numbers' is non-nil. | ||
| 2490 | |||
| 2491 | If you customize the font of this face, make sure it is a | ||
| 2492 | monospaced font, otherwise line numbers will not line up, | ||
| 2493 | and text lines might move horizontally as you move through | ||
| 2494 | the buffer. Similarly, making this face's font different | ||
| 2495 | from that of the `line-number' face could produce such | ||
| 2496 | unwanted effects." | ||
| 2497 | :version "26.1" | ||
| 2498 | :group 'basic-faces) | ||
| 2499 | |||
| 2468 | (defface escape-glyph | 2500 | (defface escape-glyph |
| 2469 | '((((background dark)) :foreground "cyan") | 2501 | '((((background dark)) :foreground "cyan") |
| 2470 | ;; See the comment in minibuffer-prompt for | 2502 | ;; See the comment in minibuffer-prompt for |