From 383f61046d68e72407ac0443190adc4065e91936 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:44:11 -0400 Subject: [PATCH] Simplify minimal-emacs-load-user-init --- early-init.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/early-init.el b/early-init.el index 158e9c7..9f9c906 100644 --- a/early-init.el +++ b/early-init.el @@ -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 - minimal-emacs-user-directory))) - (when (file-exists-p init-file) - (setq minimal-emacs--stage (file-name-nondirectory init-file)) - (load init-file nil t)))) + (let* ((init-file (expand-file-name filename + minimal-emacs-user-directory))) + (load init-file :no-error :no-message))) (minimal-emacs-load-user-init "pre-early-init") (setq minimal-emacs--stage "early-init.el")