From 2d69fbf55441010404cae77cdf52aed278f4ba26 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 26 Aug 2025 22:39:40 -0400 Subject: [PATCH] Enhance minimal-emacs-load-user-init Enhance minimal-emacs-load-user-init to display a message when Emacs starts with --debug-init mode. --- early-init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index d959cd6..197c50b 100644 --- a/early-init.el +++ b/early-init.el @@ -138,11 +138,12 @@ pre-early-init.el, and post-early-init.el.") (let ((init-file (expand-file-name filename minimal-emacs-user-directory))) (if (not minimal-emacs-load-compiled-init-files) - (load init-file :no-error :no-message :nosuffix) + (load init-file :no-error (not (bound-and-true-p init-file-debug)) + :nosuffix) ;; Remove the file suffix (.el, .el.gz, etc.) to let the `load' function ;; select between .el and .elc files. (setq init-file (minimal-emacs--remove-el-file-suffix init-file)) - (load init-file :no-error :no-message)))) + (load init-file :no-error (not (bound-and-true-p init-file-debug)))))) (minimal-emacs-load-user-init "pre-early-init.el")