Refactor doom module API
+ Consolidate the CATEGORY -> MODULE terminology + Rename functions to make their function easier to understand + Rename doom-module-expand-file => doom-module-path + Rename doom-module-find-path => doom-module-locate-path
This commit is contained in:
parent
5abdbaee38
commit
85ee9ce459
2 changed files with 59 additions and 49 deletions
|
@ -297,8 +297,8 @@
|
|||
(maphash
|
||||
(lambda (key plist)
|
||||
(condition-case ex
|
||||
(let ((doctor-file (doom-module-expand-file (car key) (cdr key) "doctor.el"))
|
||||
(packages-file (doom-module-expand-file (car key) (cdr key) "packages.el"))
|
||||
(let ((doctor-file (doom-module-path (car key) (cdr key) "doctor.el"))
|
||||
(packages-file (doom-module-path (car key) (cdr key) "packages.el"))
|
||||
doom-packages)
|
||||
(when (or (file-exists-p doctor-file)
|
||||
(file-exists-p packages-file))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue