Refactor doom-{path,file,dir,glob}
Breaking change: doom-glob would formerly return a string (if only one match) or a list. Now it always returns a list.
This commit is contained in:
parent
13f316e645
commit
a8e57438dc
6 changed files with 28 additions and 34 deletions
|
@ -164,8 +164,8 @@ each package."
|
|||
(mapc (fn! ((cat . mod))
|
||||
(if-let (packages-file
|
||||
(pcase cat
|
||||
(:private (doom-glob doom-private-dir "packages.el"))
|
||||
(:core (doom-glob doom-core-dir "packages.el"))
|
||||
(:private (car (doom-glob doom-private-dir "packages.el")))
|
||||
(:core (car (doom-glob doom-core-dir "packages.el")))
|
||||
(_ (doom-module-locate-path cat mod "packages.el"))))
|
||||
(with-current-buffer
|
||||
(or (get-file-buffer packages-file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue