Simplify minimal-emacs-load-user-init

This commit is contained in:
James Cherti
2025-03-12 16:44:11 -04:00
parent d17039f235
commit 383f61046d

View File

@@ -94,11 +94,9 @@ When set to non-nil, Emacs will automatically call `package-initialize' and
(defun minimal-emacs-load-user-init (filename)
"Execute a file of Lisp code named FILENAME."
(let ((init-file (expand-file-name filename
(let* ((init-file (expand-file-name filename
minimal-emacs-user-directory)))
(when (file-exists-p init-file)
(setq minimal-emacs--stage (file-name-nondirectory init-file))
(load init-file nil t))))
(load init-file :no-error :no-message)))
(minimal-emacs-load-user-init "pre-early-init")
(setq minimal-emacs--stage "early-init.el")