Initial test setup of treemacs config

This commit is contained in:
2017-11-17 15:19:06 +00:00
parent 4cc6e66f49
commit 94bc49b8a6
2 changed files with 56 additions and 0 deletions

View File

@@ -61,6 +61,7 @@
(require 'siren-projectile)
;; (require 'siren-ecb)
;; (require 'siren-project-explorer)
;; (require 'siren-treemacs)
;; Workspace management
(require 'siren-escreen)

55
modules/siren-treemacs.el Normal file
View File

@@ -0,0 +1,55 @@
;;; siren-treemacs.el --- jimeh's Emacs Siren: treemacs configuration.
;;; Commentary:
;; Basic configuration for treemacs.
;;; Code:
(use-package treemacs
:ensure t
:defer t
:config
(progn
(use-package treemacs-evil
:ensure t
:demand t)
(setq treemacs-follow-after-init t
treemacs-width 35
treemacs-indentation 2
treemacs-git-integration t
treemacs-collapse-dirs 3
treemacs-silent-refresh nil
treemacs-change-root-without-asking t
treemacs-sorting 'alphabetic-desc
treemacs-show-hidden-files t
treemacs-never-persist nil
treemacs-is-never-other-window nil
treemacs-goto-tag-strategy 'refetch-index)
(treemacs-follow-mode t)
(treemacs-filewatch-mode t))
:bind
(:map global-map
([f8] . treemacs-toggle)
("M-0" . treemacs-select-window)
("C-c 1" . treemacs-delete-other-windows)
;; ("M-m ft" . treemacs-toggle)
;; ("M-m fT" . treemacs)
;; ("M-m fB" . treemacs-bookmark)
;; ("M-m f C-t" . treemacs-find-file)
;; ("M-m f M-t" . treemacs-find-tag)
)
)
(use-package treemacs-projectile
:defer t
:ensure t
:config
(setq treemacs-header-function #'treemacs-projectile-create-header)
:bind (:map global-map
("C-x C-p" . treemacs-projectile)
("C-x C-p" . treemacs-projectile-toggle)))
(provide 'siren-treemacs)
;;; siren-treemacs.el ends here