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
|
(expand-file-name
|
||||||
(format (or (getenv-internal "DOOMPROFILELOADFILE")
|
(format (or (getenv-internal "DOOMPROFILELOADFILE")
|
||||||
(file-name-concat (if windows? "doomemacs/data" "doom")
|
(file-name-concat (if windows? "doomemacs/data" "doom")
|
||||||
"profiles.%d.elc"))
|
"profiles.%d"))
|
||||||
emacs-major-version)
|
emacs-major-version)
|
||||||
(or (if windows? (getenv-internal "LOCALAPPDATA"))
|
(or (if windows? (getenv-internal "LOCALAPPDATA"))
|
||||||
(getenv-internal "XDG_DATA_HOME")
|
(getenv-internal "XDG_DATA_HOME")
|
||||||
"~/.local/share")))
|
"~/.local/share")))
|
||||||
'noerror (not init-file-debug) 'nosuffix)
|
'noerror (not init-file-debug))
|
||||||
(user-error "Profiles not initialized yet; run 'doom sync' first"))))
|
(user-error "Profiles not initialized yet; run 'doom sync' first"))))
|
||||||
|
|
||||||
;; PERF: When `load'ing or `require'ing files, each permutation of
|
;; PERF: When `load'ing or `require'ing files, each permutation of
|
||||||
|
Reference in New Issue
Block a user