Function: treemacs-start-on-boot
treemacs-start-on-boot is an autoloaded and byte-compiled function
defined in treemacs.el.
Signature
(treemacs-start-on-boot &optional FOCUS-TREEMACS)
Documentation
Initialiser specifically to start treemacs as part of your init file.
Ensures that all visual elements are present which might otherwise be missing because their setup requires an interactive command or a post-command hook.
FOCUS-TREEMACS indicates whether the treemacs window should be selected.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs.el
;;;###autoload
(defun treemacs-start-on-boot (&optional focus-treemacs)
"Initialiser specifically to start treemacs as part of your init file.
Ensures that all visual elements are present which might otherwise be missing
because their setup requires an interactive command or a post-command hook.
FOCUS-TREEMACS indicates whether the treemacs window should be selected."
(-let [initial-window (selected-window)]
(treemacs)
(hl-line-highlight)
(redisplay)
(unless focus-treemacs (select-window initial-window))))