Skip to content

Commit

Permalink
fix: doom-modeline-project-name option
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Dec 1, 2024
1 parent ba6afb2 commit d4985f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4985f0

Please sign in to comment.