From d4985f0f6ebbc125995fdfd5a909ba6afe692d7d Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 1 Dec 2024 21:38:03 +0800 Subject: [PATCH] fix: doom-modeline-project-name option --- doom-modeline-segments.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 58fac9cb..a832bfe9 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1564,7 +1564,8 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil." (doom-modeline-def-segment project-name "The current perspective name." - (when (doom-modeline--segment-visible 'project-name) + (when (and doom-modeline-project-name + (doom-modeline--segment-visible 'project-name)) (propertize (doom-modeline-project-name) 'face (doom-modeline-face 'doom-modeline-project-name) 'mouse-face 'mode-line-highlight