mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix: early-init with DOOMPROFILE set
Recent changes to early-init.el accidentally moved some arguments
intended for `load` to an inner `let`, which means only the last
argument gets passed to `load`. This results in
```
> Debugger entered--Lisp error: (wrong-type-argument stringp nosuffix)
> load(nosuffix)
> (or (load (let ((windows? (memq system-type '(ms-dos windows-nt cygwin)))) (expand-file-name...
```
when starting Doom (or running a doomscript) with DOOMPROFILE set.
Move these arguments back out of the `let`.
Amend: 9ae7aa1122
This commit is contained in:
committed by
Henrik Lissner
parent
5dcba2f89f
commit
97c0dcc2c3
@ -89,8 +89,8 @@
|
||||
emacs-major-version)
|
||||
(or (if windows? (getenv-internal "LOCALAPPDATA"))
|
||||
(getenv-internal "XDG_DATA_HOME")
|
||||
"~/.local/share"))
|
||||
'noerror (not init-file-debug) 'nosuffix))
|
||||
"~/.local/share")))
|
||||
'noerror (not init-file-debug) 'nosuffix)
|
||||
(user-error "Profiles not initialized yet; run 'doom sync' first"))))
|
||||
|
||||
;; PERF: When `load'ing or `require'ing files, each permutation of
|
||||
|
Reference in New Issue
Block a user