mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user