fix: ignore profile load file extension

This shouldn't fail if the load file wasn't byte-compiled.
This commit is contained in:
Henrik Lissner
2024-11-25 17:08:51 -05:00
parent 97387b89fb
commit bbbfb85393

View File

@ -85,12 +85,12 @@
(expand-file-name
(format (or (getenv-internal "DOOMPROFILELOADFILE")
(file-name-concat (if windows? "doomemacs/data" "doom")
"profiles.%d.elc"))
"profiles.%d"))
emacs-major-version)
(or (if windows? (getenv-internal "LOCALAPPDATA"))
(getenv-internal "XDG_DATA_HOME")
"~/.local/share")))
'noerror (not init-file-debug) 'nosuffix)
'noerror (not init-file-debug))
(user-error "Profiles not initialized yet; run 'doom sync' first"))))
;; PERF: When `load'ing or `require'ing files, each permutation of