From c3b228fedd050d8d028aa3d4ec2c439ab4a19bad Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sun, 15 Oct 2023 00:22:24 -0400 Subject: [PATCH] fix(treemacs): do not overwrite git mode when treemacs-python-executable is set --- modules/ui/treemacs/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ui/treemacs/config.el b/modules/ui/treemacs/config.el index 0b8ab61ce..9f3febb6a 100644 --- a/modules/ui/treemacs/config.el +++ b/modules/ui/treemacs/config.el @@ -33,6 +33,7 @@ This must be set before `treemacs' has loaded.") (when +treemacs-git-mode ;; If they aren't supported, fall back to simpler methods (when (and (memq +treemacs-git-mode '(deferred extended)) + (not treemacs-python-executable) (not (executable-find "python3"))) (setq +treemacs-git-mode 'simple)) (treemacs-git-mode +treemacs-git-mode)