From 7e6b895206a2c714512e0102522fa5c91fa8764c Mon Sep 17 00:00:00 2001 From: Pengji Zhang Date: Fri, 19 Oct 2018 17:33:18 -0400 Subject: [PATCH] Fix an issue that may cause rhs disappeared If the first element of a list is a symbol, the list will be a conditional depending on the value of that symbol. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index e9dac92..2efd2a4 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -276,7 +276,7 @@ active.") (rhs-forms (doom-modeline--prepare-segments rhs))) (defalias sym (lambda () - (let ((rhs-str (format-mode-line rhs-forms))) + (let ((rhs-str (format-mode-line (cons "" rhs-forms)))) (list lhs-forms (propertize " " 'display