Skip to content

Commit

Permalink
emacs: hide modeline in treemacs buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Jan 7, 2024
1 parent 6cfeba6 commit 22187fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions home/config/doom/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ for what debugger to use. If the prefix ARG is set, prompt anyway."
:after treemacs
:config (treemacs-load-theme "nerd-icons"))

(add-hook 'treemacs-mode-hook #'hide-mode-line-mode)

(defun minibuffer-format-candidate (orig cand prefix suffix index _start)
(let ((prefix (if (= vertico--index index)
"" " ")))
Expand Down
6 changes: 6 additions & 0 deletions home/config/doom/config.org
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,12 @@ https://github.com/Alexander-Miller/treemacs/issues/1016

There's a fix outlined in the GH issues, which I'm applying manually.

*** Modeline
I don't really need the modeline in the treemacs buffer, so I'm disabling it.

#+begin_src elisp
(add-hook 'treemacs-mode-hook #'hide-mode-line-mode)
#+end_src
** Vertico
Prefix the current candidte with an arrow
#+begin_src elisp
Expand Down

0 comments on commit 22187fa

Please sign in to comment.