Skip to content

Commit

Permalink
Re-enable doom-modeline in treemacs
Browse files Browse the repository at this point in the history
The current `doom-modeline` shows the current workspace name in `treemacs` since Alexander-Miller/treemacs#1049, thus making the `doom-modeline` useful again.
  • Loading branch information
sebastiaanspeck committed Mar 6, 2024
1 parent ff26f26 commit 32f1085
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions extensions/doom-themes-ext-treemacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ Only takes effect if `doom-themes-treemacs-enable-variable-pitch' is non-nil."
"Set `line-spacing' in treemacs buffers."
(setq line-spacing doom-themes-treemacs-line-spacing))

(defun doom-themes-hide-modeline ()
(setq mode-line-format nil))

(defun doom-themes-enable-treemacs-variable-pitch-labels (&rest _)
(when doom-themes-treemacs-enable-variable-pitch
(dolist (face '(treemacs-root-face
Expand Down Expand Up @@ -129,9 +126,6 @@ Only takes effect if `doom-themes-treemacs-enable-variable-pitch' is non-nil."
;; Fix #293: tabs messing up formatting in `treemacs-icons-dired-mode'
(add-hook 'treemacs-icons-dired-mode-hook #'doom-themes-fix-treemacs-icons-dired-mode)

;; The modeline isn't useful in treemacs
(add-hook 'treemacs-mode-hook #'doom-themes-hide-modeline)

;; Disable fringes (and reset them everytime treemacs is selected because it
;; may change due to outside factors)
(add-hook 'treemacs-mode-hook #'doom-themes-hide-fringes-maybe)
Expand Down

0 comments on commit 32f1085

Please sign in to comment.