mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(treemacs): persp-mode compatibility
The signature of `persp-activated-functions` changed upstream in persp-mode (bumped ina1121ac), but treemacs hasn't updated its usage of it yet. Ref: #8454 Amend:a1121acc94
This commit is contained in:
parent
10bfda2351
commit
751ac6134b
1 changed files with 8 additions and 0 deletions
|
|
@ -29,6 +29,14 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue