Function: smart-treemacs-edit
smart-treemacs-edit is an autoloaded and byte-compiled function
defined in hui-treemacs.el.
Signature
(smart-treemacs-edit &optional DIR)
Documentation
Use treemacs to edit optional DIR or the default-directory.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-treemacs.el
;;;###autoload
(defun smart-treemacs-edit (&optional dir)
"Use `treemacs' to edit optional DIR or the `default-directory'."
(let ((default-directory (if (stringp dir) dir default-directory)))
(cond ((fboundp #'treemacs-add-and-display-current-project-exclusively)
(treemacs-add-and-display-current-project-exclusively))
;; Older obsoleted function
((fboundp #'treemacs-display-current-project-exclusively)
(treemacs-display-current-project-exclusively))
(t (treemacs)))))