Function: treemacs--add-project-to-current-workspace

treemacs--add-project-to-current-workspace is a byte-compiled function defined in treemacs-workspaces.el.

Signature

(treemacs--add-project-to-current-workspace PROJECT)

Documentation

Add PROJECT to the current workspace.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-workspaces.el
(define-inline treemacs--add-project-to-current-workspace (project)
  "Add PROJECT to the current workspace."
  (inline-letevals (project)
    (inline-quote
     (setf (treemacs-workspace->projects (treemacs-current-workspace))
           ;; reversing around to get the order right - new project goes to the *bottom* of the list
           (-let [reversed (nreverse (treemacs-workspace->projects (treemacs-current-workspace)))]
             (nreverse (push ,project reversed)))))))