mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix wrong-type-arg: stringp, nocache errors
Fix old usage of doom-project-name and doom-project-root.
This commit is contained in:
@ -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)
|
||||
"-")))
|
||||
|
Reference in New Issue
Block a user