mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Revise docstrings for doom-project-{root,p}
This commit is contained in:
@ -68,16 +68,16 @@ you want to interactive with a project other than the one you're in."
|
|||||||
(dolist (fn projectile-project-root-files-functions)
|
(dolist (fn projectile-project-root-files-functions)
|
||||||
(remhash (format "%s-%s" fn default-directory) projectile-project-root-cache)))
|
(remhash (format "%s-%s" fn default-directory) projectile-project-root-cache)))
|
||||||
|
|
||||||
(defun doom-project-p (&optional nocache)
|
(defun doom-project-p (&optional nocache)
|
||||||
|
"Return t if this buffer is currently in a project.
|
||||||
If NOCACHE, don't fetch a cached answer."
|
If NOCACHE, don't fetch a cached answer."
|
||||||
(if nocache
|
(if nocache
|
||||||
(without-project-cache! (doom-project-p nil))
|
(without-project-cache! (doom-project-p nil))
|
||||||
(let ((projectile-require-project-root t))
|
(let ((projectile-require-project-root t))
|
||||||
(projectile-project-p))))
|
(projectile-project-p))))
|
||||||
|
|
||||||
(defun doom-project-root (&optional nocache)
|
(defun doom-project-root (&optional nocache)
|
||||||
"Get the path to the root of your project.
|
"Returns the root of your project, or `default-directory' if none was found.
|
||||||
If STRICT-P, return nil if no project was found, otherwise return
|
|
||||||
If NOCACHE, don't fetch a cached answer."
|
If NOCACHE, don't fetch a cached answer."
|
||||||
(if nocache
|
(if nocache
|
||||||
(without-project-cache! (doom-project-root nil))
|
(without-project-cache! (doom-project-root nil))
|
||||||
|
Reference in New Issue
Block a user