fix(lib): doom/sandbox: vanilla-doom+ target
Between this and60083a2
, doom/sandbox is now fully functional (this is a stopgap fix until v3.0). Ref:60083a2626
Fix: #5845 Fix: #6505 Fix: #7486
This commit is contained in:
parent
60083a2626
commit
a022e55c08
2 changed files with 78 additions and 85 deletions
|
@ -405,7 +405,16 @@ Defaults to the profile at `doom-profile-default'."
|
|||
(letf! ((defun module-loader (group name file &optional noerror)
|
||||
(doom-module-context-with (cons group name)
|
||||
`(let ((doom-module-context ,doom-module-context))
|
||||
(doom-load ,(abbreviate-file-name (file-name-sans-extension file))))))
|
||||
(doom-load
|
||||
,(pcase (cons group name)
|
||||
('(:core . nil)
|
||||
`(file-name-concat
|
||||
doom-core-dir ,(file-name-nondirectory (file-name-sans-extension file))))
|
||||
('(:user . nil)
|
||||
`(file-name-concat
|
||||
doom-user-dir ,(file-name-nondirectory (file-name-sans-extension file))))
|
||||
(_ (abbreviate-file-name (file-name-sans-extension file))))
|
||||
t))))
|
||||
(defun module-list-loader (modules file &optional noerror)
|
||||
(cl-loop for (cat . mod) in modules
|
||||
if (doom-module-locate-path cat mod file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue