mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix: ignore profile load file extension
This shouldn't fail if the load file wasn't byte-compiled.
This commit is contained in:
parent
97387b89fb
commit
bbbfb85393
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue