Function: treemacs-set-width

treemacs-set-width is an interactive and byte-compiled function defined in treemacs-interface.el.

Signature

(treemacs-set-width &optional ARG)

Documentation

Select a new value for treemacs-width.

With a prefix ARG simply reset the width of the treemacs window.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-set-width (&optional arg)
  "Select a new value for `treemacs-width'.
With a prefix ARG simply reset the width of the treemacs window."
  (interactive "P")
  (unless arg
    (setq treemacs-width
          (->> treemacs-width
               (format "New Width (current = %s): ")
               (read-number))))
  (treemacs--set-width treemacs-width))