              :height 110
              :weight 'normal
              :foreground (doom-color 'violet))
-  (add-hook 'treemacs-mode-hook (lambda () (setq mode-line-format " Seanmacs")))
+  (add-hook 'treemacs-mode-hook #'treemacs-set-modeline)
+  (add-hook 'treemacs-mode-hook #'hide-fringes)
+  (advice-add #'treemacs-select-window :after #'hide-fringes)
+  (add-hook 'treemacs-mode-hook #'treemacs-set-background)
   (core/leader
    "tt" 'treemacs-select-window
    "te" 'treemacs-edit-workspaces

  :config
  (treemacs-follow-mode t)
  (treemacs-filewatch-mode t)
  (treemacs-fringe-indicator-mode t)
  (treemacs-git-mode 'deferred)
  (face-attr 'treemacs-fringe-indicator-face :background (doom-color 'blue))
  (face-attr 'treemacs-directory-face :foreground (doom-color 'blue))
  (face-attr 'treemacs-term-node-face :foreground (doom-color 'violet))
  (face-attr 'treemacs-git-modified-face :foreground (doom-color 'yellow))
  (face-attr 'treemacs-git-untracked-face :foreground (doom-color 'green))
  (face-attr 'treemacs-git-ignored-face :foreground (doom-color 'fg-alt))

             :foreground (doom-color 'cyan))
  (face-attr 'line-number :foreground (doom-color 'fg-alt)))

(defun treemacs-set-modeline ()
  (setq mode-line-format " Seanmacs"))

(defun hide-fringes ()
  "Remove fringes in currnent window."
  (when (display-graphic-p)
    (set-window-fringes nil 0 0)))

(defun treemacs-set-background ()
  (setq buffer-face-mode-face `(:background ,(doom-color 'bg-alt)))
  (buffer-face-mode 1))

(use-package treemacs
  :straight t
  :after doom-themes
