Make doom-modeline-column-zero-based and doom-modeline-percent-position global.

This commit is contained in:
Vincent Zhang 2018-12-08 03:57:38 +08:00
parent 21637ad560
commit 2e65c9d06b

View file

@ -1361,14 +1361,14 @@ Requires `eyebrowse-mode' to be enabled."
;; ;;
;; Be compatible with Emacs 25. ;; 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) (if (boundp 'column-number-indicator-zero-based)
column-number-indicator-zero-based column-number-indicator-zero-based
t) t)
"When non-nil, mode line displays column numbers zero-based. "When non-nil, mode line displays column numbers zero-based.
See `column-number-indicator-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) (if (boundp 'mode-line-percent-position)
mode-line-percent-position mode-line-percent-position
'(-3 "%p")) '(-3 "%p"))