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:
parent
2908a6389e
commit
b2b6ff67f2
1 changed files with 3 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue