From: Dominik Kaiser Date: Wed, 20 Aug 2025 16:06:54 +0000 (+0200) Subject: Update treemacs-toggle func X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;ds=inline;p=config%2Femacs.git Update treemacs-toggle func --- diff --git a/README.org b/README.org index 5a5164e..6b0cd11 100644 --- a/README.org +++ b/README.org @@ -179,14 +179,11 @@ These settings ensure that block highlights aren't visible when collapsed. (lsp-treemacs-sync-mode 1) (defun dk/treemacs-toggle () - "Toggle treemacs-projectile and lsp symbols" + "Toggle treemacs" (interactive) (if (treemacs-current-visibility) (treemacs) - (progn - (treemacs-projectile) - (treemacs-add-and-display-current-project-exclusively) - ))) + (treemacs-add-and-display-current-project-exclusively))) #+end_src * Version Control diff --git a/init.el b/init.el index f4a039e..498f826 100644 --- a/init.el +++ b/init.el @@ -122,14 +122,11 @@ (lsp-treemacs-sync-mode 1) (defun dk/treemacs-toggle () - "Toggle treemacs-projectile and lsp symbols" + "Toggle treemacs" (interactive) (if (treemacs-current-visibility) (treemacs) - (progn - (treemacs-projectile) - (treemacs-add-and-display-current-project-exclusively) - ))) + (treemacs-add-and-display-current-project-exclusively))) (use-package magit :commands (magit-status magit-get-current-branch)