Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(treemacs): show modeline in treemacs #824

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions extensions/doom-themes-ext-treemacs.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ See `doom-themes-treemacs-variable-pitch-face'."
:type 'integer
:group 'doom-themes-treemacs)

(defcustom doom-themes-treemacs-hide-modeline t
"If non-nil, hide the modeline in treemacs buffer."
:type 'boolean
:group 'doom-themes-treemacs)

(defcustom doom-themes-treemacs-theme "doom-atom"
"Default treemacs theme."
:type '(radio (const :doc "A minimalistic atom-inspired icon theme" "doom-atom")
Expand Down Expand Up @@ -87,7 +92,8 @@ Only takes effect if `doom-themes-treemacs-enable-variable-pitch' is non-nil."
(setq line-spacing doom-themes-treemacs-line-spacing))

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

(defun doom-themes-enable-treemacs-variable-pitch-labels (&rest _)
(when doom-themes-treemacs-enable-variable-pitch
Expand Down Expand Up @@ -131,7 +137,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
Expand Down