Add doom-project-name function

This commit is contained in:
Henrik Lissner 2018-02-06 17:30:16 -05:00
parent 508dbf7a5c
commit f28a89f701
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -75,6 +75,13 @@ If NOCACHE, don't fetch a cached answer."
(let ((projectile-require-project-root t))
(projectile-project-p))))
(defun doom-project-name (&optional nocache)
"Return the name of the current project.
If NOCACHE, don't fetch a cached answer."
(if nocache
(without-project-cache! (doom-project-name nil))
(projectile-project-name)))
(defun doom-project-root (&optional nocache)
"Returns the root of your project, or `default-directory' if none was found.
If NOCACHE, don't fetch a cached answer."