doomemacs/modules/ui/treemacs/config.el
Henrik Lissner 77e4cc4d58
💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00

42 lines
1.1 KiB
EmacsLisp

;;; ui/treemacs/config.el -*- lexical-binding: t; -*-
(setq treemacs-follow-after-init t
treemacs-is-never-other-window t
treemacs-sorting 'alphabetic-case-insensitive-desc
treemacs-persist-file (concat doom-cache-dir "treemacs-persist"))
(after! treemacs-persistence
;; This variable is defined with defconst, so we must wait to change it until
;; it has loaded.
(setq treemacs--last-error-persist-file
(concat doom-cache-dir
"treemacs-persist-at-last-error")))
(after! treemacs
(set-popup-rule! "^ \\*Treemacs"
:side treemacs-position
:size treemacs-width
:quit nil
:ttl 0)
;; Don't follow the cursor
(treemacs-follow-mode -1)
(after! ace-window
(setq aw-ignored-buffers (delq 'treemacs-mode aw-ignored-buffers))))
(def-package! treemacs-evil
:when (featurep! :editor evil +everywhere)
:after treemacs
:config
(define-key! evil-treemacs-state-map
[return] #'treemacs-RET-action
[tab] #'treemacs-TAB-action
"TAB" #'treemacs-TAB-action))
(def-package! treemacs-projectile
:after treemacs)