Include package-activated-list in profile

This seemed reasonable before, and I'm currently debugging a load order
problem for which having this is useful.
This commit is contained in:
Marien Zwart 2024-04-07 20:38:44 +10:00
parent 367bce4bd1
commit 9fea22f0c5
No known key found for this signature in database

View file

@ -31,7 +31,7 @@ it. Just skip it entirely."
;; - Load autoloads. Duplicated by generate-unstraightened-autoloads.
;; - Add to load-path. Doom already stores load-path.
;; - Add Info node. TODO.
;; - Add name to package-activated-list. Maybe serialize that?
;; - Add name to package-activated-list. Stored below.
(defun generate-unstraightened-autoloads ()
"Like doom-profile--generate-package-autoloads but for package.el."
@ -49,6 +49,8 @@ it. Just skip it entirely."
'doom-profile-generators
'("90-loaddefs-unstraightened.auto.el" . generate-unstraightened-autoloads))
(add-to-list 'doom-autoloads-cached-vars 'package-activated-list)
(defcli! build-profile-for-nix-build ()
"Write a Doom profile."
;; HACK: this initializes enough of straight (particularly