feat(treemacs): add binding for accessing files

This commit is contained in:
Kiana Sheibani 2024-07-22 13:35:31 -04:00
parent a0c0c8994c
commit d56254d4eb
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -2278,6 +2278,16 @@ Treemacs is a really useful package, but it also has a lot of defaults I don't l
)
#+end_src
*** Bindings
A natural thing to do when browsing through the project tree is create a new file. The best way to do this is with the usual ~find-file~ command, bound to =SPC .=, but it would be nice to have a binding to save that leader key press.
#+begin_src emacs-lisp
(map! :after treemacs
:mode treemacs-mode
"." #'find-file)
#+end_src
*** Project Integration
I often accidentally open the project tree before I've even selected a project, which I don't want because it messes up =treemacs-projectile=. Let's fix that problem: