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

@ -46,7 +46,8 @@ they are absolute."
;;;###autoload
(defun doom-project-name (&optional dir)
"Return the name of the current project."
(let ((project-root (projectile-project-root dir)))
(let ((project-root (or (projectile-project-root dir)
(if dir (expand-file-name dir)))))
(if project-root
(funcall projectile-project-name-function project-root)
"-")))