Fix wrong-type-arg: stringp, nocache errors
Fix old usage of doom-project-name and doom-project-root.
This commit is contained in:
parent
cae5009925
commit
e7fc1d3290
3 changed files with 8 additions and 7 deletions
|
@ -9,9 +9,10 @@
|
|||
(dolist (project (treemacs-workspace->projects (treemacs-current-workspace)))
|
||||
(treemacs-do-remove-project-from-workspace project))
|
||||
(with-current-buffer origin-buffer
|
||||
(treemacs-do-add-project-to-workspace
|
||||
(treemacs--canonical-path (doom-project-root))
|
||||
(doom-project-name))
|
||||
(let ((project-root (or (doom-project-root) default-directory)))
|
||||
(treemacs-do-add-project-to-workspace
|
||||
(treemacs--canonical-path project-root)
|
||||
(doom-project-name project-root)))
|
||||
(setq treemacs--ready-to-follow t)
|
||||
(when (or treemacs-follow-after-init treemacs-follow-mode)
|
||||
(treemacs--follow)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue