aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-07-11 18:16:36 +0300
committerEli Zaretskii2017-07-11 18:16:36 +0300
commitd014a5e15c1110af77e7a96f06ccd0f0cafb099f (patch)
tree511a47194dd94c2551e99d7f5d9a968d7762588f
parent10b876b25b5c65014c5d7f996ae3368ea8fd11b2 (diff)
downloademacs-d014a5e15c1110af77e7a96f06ccd0f0cafb099f.tar.gz
emacs-d014a5e15c1110af77e7a96f06ccd0f0cafb099f.zip
Use fixed-pitch font for display-line-numbers
* lisp/faces.el (line-number): Use a fixed-pitch font by default, even if the default face uses a variable-pitch font. Reported by James Cloos <cloos@jhcloos.com>.
-rw-r--r--lisp/faces.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index c3693d16631..e073ed266c0 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2465,9 +2465,12 @@ If you set `term-file-prefix' to nil, this function does nothing."
2465 :version "21.1" 2465 :version "21.1"
2466 :group 'basic-faces) 2466 :group 'basic-faces)
2467 2467
2468;; Definition stolen from linum.el. 2468;; Definition originally stolen from linum.el.
2469;; The monospace part is so we don't accidentally display numbers
2470;; using a variable-pitch font just because the default face uses
2471;; such a font.
2469(defface line-number 2472(defface line-number
2470 '((t :inherit (shadow default))) 2473 '((t :inherit (shadow default) :family "Monospace Serif"))
2471 "Face for displaying line numbers. 2474 "Face for displaying line numbers.
2472This face is used when `display-line-numbers' is non-nil. 2475This face is used when `display-line-numbers' is non-nil.
2473 2476