mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: ignore profile load file extension
This shouldn't fail if the load file wasn't byte-compiled.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user