From b2b6ff67f28f3b9f9b7d170d3b547fac39891eed Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 14 Jun 2018 14:01:25 +0200 Subject: [PATCH] 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 --- modules/ui/treemacs/config.el | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/modules/ui/treemacs/config.el b/modules/ui/treemacs/config.el index 87e1c4761..8b17a8893 100644 --- a/modules/ui/treemacs/config.el +++ b/modules/ui/treemacs/config.el @@ -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