feat(lib): add base-directory arg to project-file-exists-p!
I also revise its docstring. Ref: #7333 Co-authored-by: LemonBreezes <LemonBreezes@users.noreply.github.com>
This commit is contained in:
parent
150ccd6305
commit
b1cc719063
1 changed files with 7 additions and 6 deletions
|
@ -28,12 +28,13 @@
|
||||||
;;; Macros
|
;;; Macros
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defmacro project-file-exists-p! (files)
|
(defmacro project-file-exists-p! (files &optional base-directory)
|
||||||
"Checks if the project has the specified FILES.
|
"Checks if FILES exist at the current project's root.
|
||||||
Paths are relative to the project root, unless they start with ./ or ../ (in
|
|
||||||
which case they're relative to `default-directory'). If they start with a slash,
|
The project's root is determined by `projectile', starting from BASE-DIRECTORY
|
||||||
they are absolute."
|
(defaults to `default-directory'). FILES are paths relative to the project root,
|
||||||
`(file-exists-p! ,files (doom-project-root)))
|
unless they begin with a slash."
|
||||||
|
`(file-exists-p! ,files (doom-project-root base-directory)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue