Function: treemacs--select-visible-window
treemacs--select-visible-window is a byte-compiled function defined in
treemacs-scope.el.
Signature
(treemacs--select-visible-window)
Documentation
Switch to treemacs buffer, given that it is currently visible.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-scope.el
(defun treemacs--select-visible-window ()
"Switch to treemacs buffer, given that it is currently visible."
(-some->> treemacs--scope-storage
(assoc (treemacs-scope->current-scope treemacs--current-scope-type))
(cdr)
(treemacs-scope-shelf->buffer)
(get-buffer-window)
(select-window))
(run-hook-with-args 'treemacs-select-functions 'visible))