revert: persp-mode

Bad-ptr/persp-mode.el@82680795b3 -> Bad-ptr/persp-mode.el@40e9993a97

persp-mode introduced some breaking API changes in a recent refactoring,
which have caused issues that are difficult to opt out of, even by
repinning it to an older commit. Until persp-mode sorts things out, I
simply revert it back to a point before all the changes.

Revert: c64ca09ed2
Revert: 751ac6134b
Revert: 6d5e004b87
Amend: a1121acc94
Fix: #8455
Close: #8474
Ref: #8470
This commit is contained in:
Henrik Lissner
2025-09-01 01:00:08 +02:00
parent a1c307b441
commit b2e4e8e27c
4 changed files with 4 additions and 13 deletions

View File

@@ -29,14 +29,6 @@ This must be set before `treemacs' has loaded.")
;; Don't follow the cursor (it's more disruptive/jarring than helpful as a default)
(treemacs-follow-mode -1)
;; HACK: persp-mode changed the signature for `persp-activated-functions', but
;; treemacs hasn't updated its usage yet.
;; REVIEW: PR upstream
(remove-hook 'persp-activated-functions #'treemacs--remove-treemacs-window-in-new-frames)
(add-hook! 'persp-activated-functions
(defun +treemacs--remove-treemacs-window-in-new-frames-h (type &rest _)
(treemacs--remove-treemacs-window-in-new-frames type)))
(set-popup-rule! "^ ?\\*Treemacs" :ignore t)
(when +treemacs-git-mode
;; If they aren't supported, fall back to simpler methods