mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Set doom--initial-load-path in sandbox
Prevents loaded packages miscount (e.g. -1) in dashboard/log in sandbox instance. This occurs because the benchmark line uses a simple heuristic to determine the loaded packages: length of load-path minus the length of doom--initial-load-path (to save on more expensive counting methods). However, in the sandbox, load-path is pre-populated with all packages right from the get-go, so doom--initial-load-path will be incorrect.
This commit is contained in:
@ -317,6 +317,7 @@ Some items are not supported by the `nsm.el' module."
|
|||||||
process-environment ',doom--initial-process-environment
|
process-environment ',doom--initial-process-environment
|
||||||
exec-path ',doom--initial-exec-path
|
exec-path ',doom--initial-exec-path
|
||||||
init-file-debug t
|
init-file-debug t
|
||||||
|
doom--initial-load-path load-path
|
||||||
load-path ',load-path
|
load-path ',load-path
|
||||||
package--init-file-ensured t
|
package--init-file-ensured t
|
||||||
package-user-dir ,package-user-dir
|
package-user-dir ,package-user-dir
|
||||||
|
Reference in New Issue
Block a user