mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix: profile loader file path
Should load the byte-compiled version of the file (and produce one
without a redundant emacs version suffix).
Amend: 9ae7aa1122
This commit is contained in:
@ -85,7 +85,7 @@
|
||||
(expand-file-name
|
||||
(format (or (getenv-internal "DOOMPROFILELOADFILE")
|
||||
(file-name-concat (if windows? "doomemacs/data" "doom")
|
||||
"profiles.%d.el"))
|
||||
"profiles.%d.elc"))
|
||||
emacs-major-version)
|
||||
(or (if windows? (getenv-internal "LOCALAPPDATA"))
|
||||
(getenv-internal "XDG_DATA_HOME")
|
||||
|
@ -248,7 +248,7 @@ caches them in `doom--profiles'. If RELOAD? is non-nil, refresh the cache."
|
||||
(print-group!
|
||||
(or (let ((byte-compile-warnings (if init-file-debug byte-compile-warnings))
|
||||
(byte-compile-dest-file-function
|
||||
(lambda (_) (format "%s.%d.elc" (file-name-sans-extension file) emacs-major-version))))
|
||||
(lambda (_) (format "%s.elc" (file-name-sans-extension file)))))
|
||||
(byte-compile-file file))
|
||||
;; Do it again? So the errors/warnings are visible?
|
||||
;; (let ((byte-compile-warnings t))
|
||||
|
Reference in New Issue
Block a user