From 27b22faf5640a24918ee380114680a407b899106 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 26 Feb 2019 01:45:11 +0700 Subject: [PATCH] [Compatibility] % symbol not displayed in minor mode lighters. --- doom-modeline-segments.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 76f170a..70ea539 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -444,7 +444,12 @@ mouse-1: Display minor modes menu" 'mouse-1 #'minions-minor-modes-menu)) " ") (propertize - (concat (format-mode-line '("" minor-mode-alist)) " ") + (concat + (replace-regexp-in-string (regexp-quote "%") + "%%%%" + (format-mode-line '("" minor-mode-alist)) + t t) + " ") 'face (if active 'doom-modeline-buffer-minor-mode 'mode-line-inactive))))))