Skip to content

Commit

Permalink
[treemacs] Use deferred git-mode by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Miller authored and sdwolfz committed Jan 14, 2019
1 parent 7353d56 commit 3cf3229
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions layers/+filetree/treemacs/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ Must be a number.")
(defvar treemacs-use-git-mode
(pcase (cons (not (null (executable-find "git")))
(not (null (executable-find "python3"))))
(`(t . t) 'extended)
(`(t . t) 'deferred)
(`(t . _) 'simple))
"Type of git integration for `treemacs-git-mode'.
There are 2 possible values:
1) simple, which highlights only files based on their git status, and is
slightly faster
2) extended, which highlights both files and directories, but requires python")
2) extended, which highlights both files and directories, but requires python
3) deferred, which is the same is extended, but delays highlighting for improved
performance")

(defvar treemacs-lock-width nil
"When non-nil the treemacs window will not be manually resizable by default.")
2 changes: 1 addition & 1 deletion layers/+filetree/treemacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
(treemacs-follow-mode t))
(when treemacs-use-filewatch-mode
(treemacs-filewatch-mode t))
(when (memq treemacs-use-git-mode '(simple extended))
(when (memq treemacs-use-git-mode '(simple extended deferred))
(treemacs-git-mode treemacs-use-git-mode))
(add-to-list 'spacemacs-window-split-ignore-prefixes
treemacs--buffer-name-prefix))))
Expand Down

0 comments on commit 3cf3229

Please sign in to comment.