From 4a1e4599826e036e3da3bc367476b9817e5af2a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Feb 2020 09:29:35 +0100 Subject: Pad buffer percentage indicator Annoyingly, this makes things look right on Linux but is over-padded on MacOS. --- emacs/.emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index dc34927..fb4a2f1 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -97,8 +97,8 @@ (spaceline-define-segment buffer-position "Buffer position in percent" - (format "%3d%%%%" (/ (* 100 (- (line-number-at-pos) 1)) - (max 1 (count-lines (point-min) (point-max)))))) + (format "%3d%%%% " (/ (* 100 (- (line-number-at-pos) 1)) + (max 1 (count-lines (point-min) (point-max)))))) (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) -- cgit v1.2.1