From dfa6c468c38a8320ab4f9d1a9c6d3b3c0d3ad1a3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 5 Jul 2017 02:56:01 +0200 Subject: [PATCH] Change doom-line-number-pad-char default to space There are some subtle issues with using the unicode, which depends largely on the font you use. It is also slightly faster to use a space. If you use whitespace-mode's space-mark feature, then change this to ?\u2002. Addresses #109 --- core/core-ui.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 9b97e2384..fca2cd95e 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -32,10 +32,14 @@ shorter major mode name in the mode-line. See `doom|set-mode-name'.") (defvar doom-line-number-rpad 1 "How much padding to place after line numbers.") -(defvar doom-line-number-pad-char ?\u2002 - "Character to use for padding line numbers. We use an exotic 'space-looking' -character so that `whitespace-mode' won't replace spaces inside the line number -overlay.") +(defvar doom-line-number-pad-char 32 + "Character to use for padding line numbers. + +By default, this is a space key. If you use `whitespace-mode' with `space-mark', +the whitespace in line numbers will be affected (this can look ugly). In this +case, you can change this to ?\u2002, which is a unicode character that looks +like a space that `whitespace-mode' won't affect.") + ;; Hook(s) (defvar doom-init-ui-hook nil