Function: treemacs--on-window-config-change
treemacs--on-window-config-change is a byte-compiled function defined
in treemacs-core-utils.el.
Signature
(treemacs--on-window-config-change)
Documentation
Collects all tasks that need to run on a window config change.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs--on-window-config-change ()
"Collects all tasks that need to run on a window config change."
(-when-let (w (treemacs-get-local-window))
(treemacs-without-following
(with-selected-window w
;; apparently keeping the hook around can lead to a feeback loop together with helms
;; auto-resize mode as seen in https://github.com/Alexander-Miller/treemacs/issues/76
(let (window-configuration-change-hook)
(set-window-parameter w 'no-delete-other-windows treemacs-no-delete-other-windows)
(when treemacs-display-in-side-window
(set-window-parameter w 'window-side treemacs-position)
(set-window-parameter w 'window-slot 0))
(when treemacs-is-never-other-window
(set-window-parameter w 'no-other-window t)))))))