Skip to content

Commit

Permalink
fix: ignore profile load file extension
Browse files Browse the repository at this point in the history
This shouldn't fail if the load file wasn't byte-compiled.
  • Loading branch information
hlissner committed Nov 25, 2024
1 parent 97387b8 commit bbbfb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbbfb85

Please sign in to comment.