Prevent treemacs from creating ~/.emacs.d/.cache

Alexander-Miller/treemacs#212 introduced treemacs-persist-file, which we
now use instead of tools/treemacs' old treemacs-persistence hack (which
didn't work).

Relevant to #669
This commit is contained in:
Henrik Lissner 2018-06-14 14:01:25 +02:00
parent 2908a6389e
commit b2b6ff67f2
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -9,18 +9,9 @@
treemacs-indentation 2
treemacs-sorting 'alphabetic-desc
treemacs-show-hidden-files t
treemacs-goto-tag-strategy 'refetch-index)
(after! treemacs-persistence
(setq treemacs--persist-file (concat doom-cache-dir "treemacs-persist"))
;; Because `treemacs--persist-file' is defined with `defconst' and used
;; immediately afterwards, it cannot be easily customized before
;; `treemacs--restore' uses its value. So, we call it a second time so the
;; customization can take effect.
(unless (featurep 'treemacs)
(treemacs--restore)))
treemacs-goto-tag-strategy 'refetch-index
;; for `treemacs-persistence'
treemacs-persist-file (concat doom-cache-dir "treemacs-persist"))
(after! treemacs