From f28a89f7011eb24220bd0cb77e9eef71b482de54 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 6 Feb 2018 17:30:16 -0500 Subject: [PATCH] Add doom-project-name function --- core/core-projects.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/core-projects.el b/core/core-projects.el index 7a664bcc9..e598c241c 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -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."