Enable treemacs workspace/persp support

With https://github.com/Alexander-Miller/treemacs/issues/592 merged,
treemacs now fully supports perspective mode. That is, each treemacs
buffer is scoped to a perspective and initializes itself using projectile.

This change re-enables treemacs-persp, enables the `Perspectives` scope,
and adjusts the doom treemacs init behavior to support the new
treemacs-persp behavior.

I haven't been able to reproduce the prior errors with melpa so I think
this is safe to re-enable now. In my testing it seems to work
flawlessly, both with and without persp-mode enabled.

Only one issue is that users might need to remove their treemacs persist
file (`~/.emacs.d/.local/cache/treemacs-persist`) after this change if
using persp-mode. I'm not sure if it is necessary since I blew away my
own before testing.
This commit is contained in:
James Ravn 2020-04-02 21:05:49 +01:00
parent 378cab0c16
commit e05e452528
No known key found for this signature in database
GPG key ID: 52C372C72159D6EE
3 changed files with 10 additions and 2 deletions

View file

@ -66,3 +66,8 @@ This must be set before `treemacs' has loaded.")
(use-package! treemacs-magit
:when (featurep! :tools magit)
:after treemacs magit)
(use-package! treemacs-persp
:when (featurep! :ui workspaces)
:after (treemacs persp-mode)
:config (treemacs-set-scope-type 'Perspectives))