Skip to content

Commit

Permalink
fix: duplicated time info when disabling doom-modeline-time
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Oct 2, 2024
1 parent d6ccd0c commit ec6bc00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -3146,7 +3146,9 @@ When the svg library is not available, return nil."
(if (and doom-modeline-time
(bound-and-true-p doom-modeline-mode))
(setq global-mode-string (delq 'display-time-string global-mode-string))
(setq global-mode-string (append global-mode-string '(display-time-string)))))
(or (memq 'display-time-string global-mode-string)
(setq global-mode-string
(append global-mode-string '(display-time-string))))))
(add-hook 'display-time-mode-hook #'doom-modeline-override-time)
(add-hook 'doom-modeline-mode-hook #'doom-modeline-override-time)

Expand Down

0 comments on commit ec6bc00

Please sign in to comment.