Add hack to use non-profile paths
This unsets DOOMPROFILE from inside the profile loader, which should result in Doom behaving as if we were not using profiles at all. I'm marking this experimental in part because it feels like a hack, and in part because this is not sufficient to fix `doom doctor`.
This commit is contained in:
parent
2babb2ed6a
commit
e602ad8bed
4 changed files with 15 additions and 3 deletions
|
|
@ -18,14 +18,16 @@
|
|||
(defcli! build-profile-loader
|
||||
((profile-name ("-n" form) "Profile name.")
|
||||
(base-directory ("-b" dir) "Base directory (for profile and straight).")
|
||||
(profile-doom-dir ("-d" dir) "DOOMDIR"))
|
||||
(profile-doom-dir ("-d" dir) "DOOMDIR")
|
||||
(unset-profile ("-u") "Unset DOOMPROFILE at startup."))
|
||||
"Write Doom's profile loader."
|
||||
(let* ((profile-directory (expand-file-name "profile/" base-directory))
|
||||
(new-profiles `((,profile-name
|
||||
(user-emacs-directory . ,doom-emacs-dir)
|
||||
(doom-profile-data-dir . ,profile-directory)
|
||||
(unstraightened--straight-base-dir . ,base-directory)
|
||||
("DOOMDIR" . ,profile-doom-dir)))))
|
||||
("DOOMDIR" . ,profile-doom-dir)
|
||||
,@(when unset-profile '(("DOOMPROFILE" . nil)))))))
|
||||
(doom-profiles-save new-profiles)))
|
||||
|
||||
(run! "build-profile-loader" (cdr (member "--" argv)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue