From 40564fc2814b1499ff9cc5fbf3ba99ea0a77be09 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 25 Feb 2019 23:38:45 +0700 Subject: [PATCH] [Compatibility] % symbol not displayed in global string. Fix #121. --- doom-modeline-segments.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 37b9d62..76f170a 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1228,7 +1228,10 @@ mouse-2: Show help for minor mode" "Mode line construct for miscellaneous information. By default, this shows the information specified by `global-mode-string'." (if (doom-modeline--active) - '("" mode-line-misc-info))) + (replace-regexp-in-string (regexp-quote "%") + "%%%%" + (format-mode-line mode-line-misc-info) + t t))) ;;