From d56254d4ebe8befbdbd754043bde5c6d147b6429 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Mon, 22 Jul 2024 13:35:31 -0400 Subject: [PATCH] feat(treemacs): add binding for accessing files --- config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.org b/config.org index f8d1263..54a6bca 100644 --- a/config.org +++ b/config.org @@ -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: