Function: smart-treemacs-quit

smart-treemacs-quit is an interactive and byte-compiled function defined in hui-treemacs.el.

Signature

(smart-treemacs-quit &optional ARG)

Documentation

Quit treemacs visible in current frame with bury-buffer.

With a prefix ARG call treemacs-kill-buffer instead.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-treemacs.el
(defun smart-treemacs-quit (&optional arg)
  "Quit treemacs visible in current frame with `bury-buffer'.
With a prefix ARG call `treemacs-kill-buffer' instead."
  (interactive "P")
  (when (eq (treemacs-current-visibility) 'visible)
    (with-selected-window (treemacs-get-local-window)
      (treemacs-quit arg))))