This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+filetree/treemacs/config.el

32 lines
1 KiB
EmacsLisp
Raw Normal View History

2017-08-07 06:37:47 +00:00
;;; packages.el --- treemacs Layer packages File for Spacemacs
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
2017-08-07 06:37:47 +00:00
;;
;; Author: Alexander Miller <alexanderm@web.de>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defvar treemacs-use-follow-mode t
"When non-nil use `treemacs-follow-mode'.")
(defvar treemacs-use-filewatch-mode t
"When non-nil use `treemacs-filewatch-mode'.")
(defvar treemacs-use-collapsed-directories (if (executable-find "python") 3 0)
2017-08-07 06:37:47 +00:00
"Number of directories to collapse with `treemacs-collapse-dirs'.
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 . _) '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")