Skip to content

Commit

Permalink
[UI] Don't compile doom-modeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Miller committed Sep 11, 2023
1 parent b4e2ad8 commit 8170a93
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/elisp/treemacs-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,15 @@ Will be set by `treemacs--post-command'.")
'(:eval (moody-tab " Treemacs " 10 'down)))
((featurep 'doom-modeline)
(with-no-warnings
(eval-and-compile (require 'doom-modeline nil 'noerror))
(doom-modeline-def-segment treemacs-workspace-name
"Display treemacs."
(propertize (format " %s " (treemacs-workspace->name (treemacs-current-workspace)))
'face (doom-modeline-face 'doom-modeline-buffer-minor-mode)))
(doom-modeline-def-modeline 'treemacs '(bar " " major-mode) '(treemacs-workspace-name))
(doom-modeline 'treemacs)))
(eval
'(progn
(require 'doom-modeline)
(doom-modeline-def-segment treemacs-workspace-name
"Display treemacs."
(propertize (format " %s " (treemacs-workspace->name (treemacs-current-workspace)))
'face (doom-modeline-face 'doom-modeline-buffer-minor-mode)))
(doom-modeline-def-modeline 'treemacs '(bar " " major-mode) '(treemacs-workspace-name))
(doom-modeline 'treemacs)))))
(t
'(:eval (format " Treemacs: %s"
(treemacs-workspace->name (treemacs-current-workspace))))))))
Expand Down

0 comments on commit 8170a93

Please sign in to comment.