Optimize file-exists-p! & project-file-exists-p!

This commit is contained in:
Henrik Lissner 2018-06-04 13:57:18 +02:00
parent e13ccf3e08
commit 52a04fd8c6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 13 additions and 7 deletions

View file

@ -99,7 +99,7 @@ If NOCACHE, don't fetch a cached answer."
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,
they are absolute."
(doom--resolve-path-forms files '(doom-project-root)))
`(file-exists-p! ,files (doom-project-root)))
(defun doom-project-find-file (dir)
"Fuzzy-find a file under DIR."