Fix wrong-type-arg: stringp, nocache errors

Fix old usage of doom-project-name and doom-project-root.
This commit is contained in:
Henrik Lissner 2018-09-28 23:47:36 -04:00
parent cae5009925
commit e7fc1d3290
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 8 additions and 7 deletions

View file

@ -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)))))