Add doom*project-root advice fn
This commit is contained in:
parent
7d081c3154
commit
a2ca21cc21
3 changed files with 9 additions and 6 deletions
|
@ -77,6 +77,11 @@ state are passed in.")
|
|||
(let ((projectile-require-project-root strict-p))
|
||||
(ignore-errors (projectile-project-root))))
|
||||
|
||||
(defun doom*project-root (&rest _)
|
||||
"An advice function used to replace project-root-detection functions in other
|
||||
libraries."
|
||||
(doom-project-root))
|
||||
|
||||
(defmacro doom-project-has! (files)
|
||||
"Checks if the project has the specified FILES, relative to the project root,
|
||||
unless the path begins with ./ or ../, in which case it's relative to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue