Update
This commit is contained in:
@@ -2,30 +2,37 @@
|
||||
(use-package treemacs
|
||||
:ensure t
|
||||
:defer t
|
||||
:commands (treemacs-follow-mode
|
||||
treemacs-filewatch-mode
|
||||
treemacs-git-mode
|
||||
treemacs-project-follow-mode
|
||||
treemacs-hide-gitignored-files-mode)
|
||||
:custom-face
|
||||
(cfrs-border-color ((t (:inherit posframe-border))))
|
||||
:init
|
||||
(with-eval-after-load 'winum
|
||||
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
|
||||
:config
|
||||
(treemacs-follow-mode t)
|
||||
(treemacs-filewatch-mode t)
|
||||
(treemacs-fringe-indicator-mode 'always)
|
||||
(pcase (cons (not (null (executable-find "git")))
|
||||
(not (null (executable-find "python3"))))
|
||||
(`(t . t)
|
||||
(treemacs-git-mode 'deferred))
|
||||
(`(t . _)
|
||||
(treemacs-git-mode 'simple)))
|
||||
(treemacs-git-commit-diff-mode t)
|
||||
(treemacs-hide-gitignored-files-mode t)
|
||||
|
||||
(setq treemacs-collapse-dirs (if treemacs-python-executable 3 0)
|
||||
treemacs-missing-project-action 'remove
|
||||
treemacs-user-mode-line-format 'none
|
||||
treemacs-sorting 'alphabetic-asc
|
||||
treemacs-follow-after-init t
|
||||
treemacs-width 30
|
||||
treemacs-show-hidden-files nil
|
||||
treemacs-silent-refresh t
|
||||
treemacs-no-png-images 1)
|
||||
|
||||
(treemacs-follow-mode t)
|
||||
(treemacs-project-follow-mode t)
|
||||
(treemacs-filewatch-mode t)
|
||||
:bind
|
||||
(:map global-map
|
||||
("M-0" . treemacs-select-window)
|
||||
|
||||
Reference in New Issue
Block a user