Function: treemacs-edit-workspaces
treemacs-edit-workspaces is an autoloaded, interactive and
byte-compiled function defined in treemacs.el.
Signature
(treemacs-edit-workspaces)
Documentation
Edit your treemacs workspaces and projects as an org-mode file.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs.el
;;;###autoload
(defun treemacs-edit-workspaces ()
"Edit your treemacs workspaces and projects as an `org-mode' file."
(interactive)
(require 'org)
(require 'outline)
(treemacs--persist)
(switch-to-buffer (get-buffer-create treemacs--org-edit-buffer-name))
(erase-buffer)
(org-mode)
(use-local-map (copy-keymap (with-no-warnings org-mode-map)))
(local-set-key (kbd "C-c C-c") #'treemacs-finish-edit)
(insert "#+TITLE: Edit Treemacs Workspaces & Projects\n")
(when treemacs-show-edit-workspace-help
(insert "# Call ~treemacs-finish-edit~ or press ~C-c C-c~ when done.\n")
(insert "# [[https://github.com/Alexander-Miller/treemacs#conveniently-editing-your-projects-and-workspaces][Click here for detailed documentation.]]\n")
(insert "# To cancel you can simply kill this buffer.\n\n"))
(insert-file-contents treemacs-persist-file)
(with-no-warnings
(outline-show-all))
(goto-char 0))