From 2e65c9d06b30cef156f7e74b773e67b487af9b24 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 8 Dec 2018 03:57:38 +0800 Subject: [PATCH] Make doom-modeline-column-zero-based and doom-modeline-percent-position global. --- doom-modeline.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 77d059b..5c3d682 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -1361,14 +1361,14 @@ Requires `eyebrowse-mode' to be enabled." ;; ;; Be compatible with Emacs 25. -(defvar-local doom-modeline-column-zero-based +(defvar doom-modeline-column-zero-based (if (boundp 'column-number-indicator-zero-based) column-number-indicator-zero-based t) "When non-nil, mode line displays column numbers zero-based. See `column-number-indicator-zero-based'.") -(defvar-local doom-modeline-percent-position +(defvar doom-modeline-percent-position (if (boundp 'mode-line-percent-position) mode-line-percent-position '(-3 "%p"))