mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(treemacs): do not overwrite git mode when treemacs-python-executable is set
This commit is contained in:
committed by
Henrik Lissner
parent
13fa55da82
commit
c3b228fedd
@ -33,6 +33,7 @@ This must be set before `treemacs' has loaded.")
|
|||||||
(when +treemacs-git-mode
|
(when +treemacs-git-mode
|
||||||
;; If they aren't supported, fall back to simpler methods
|
;; If they aren't supported, fall back to simpler methods
|
||||||
(when (and (memq +treemacs-git-mode '(deferred extended))
|
(when (and (memq +treemacs-git-mode '(deferred extended))
|
||||||
|
(not treemacs-python-executable)
|
||||||
(not (executable-find "python3")))
|
(not (executable-find "python3")))
|
||||||
(setq +treemacs-git-mode 'simple))
|
(setq +treemacs-git-mode 'simple))
|
||||||
(treemacs-git-mode +treemacs-git-mode)
|
(treemacs-git-mode +treemacs-git-mode)
|
||||||
|
Reference in New Issue
Block a user