use-package: Expand minimally

This commit is contained in:
James Cherti
2026-01-14 07:31:51 -05:00
parent 88df2aecc0
commit 07bfc40c20

View File

@@ -146,11 +146,11 @@ pre-early-init.el, and post-early-init.el.")
(let ((init-file (expand-file-name filename (let ((init-file (expand-file-name filename
minimal-emacs-user-directory))) minimal-emacs-user-directory)))
(if (not minimal-emacs-load-compiled-init-files) (if (not minimal-emacs-load-compiled-init-files)
(load init-file :no-error (not init-file-debug) :nosuffix) (load init-file :no-error (not minimal-emacs-debug) :nosuffix)
;; Remove the file suffix (.el, .el.gz, etc.) to let the `load' function ;; Remove the file suffix (.el, .el.gz, etc.) to let the `load' function
;; select between .el and .elc files. ;; select between .el and .elc files.
(setq init-file (minimal-emacs--remove-el-file-suffix init-file)) (setq init-file (minimal-emacs--remove-el-file-suffix init-file))
(load init-file :no-error (not init-file-debug))))) (load init-file :no-error (not minimal-emacs-debug)))))
(minimal-emacs-load-user-init "pre-early-init.el") (minimal-emacs-load-user-init "pre-early-init.el")
@@ -467,7 +467,7 @@ this stage of initialization."
;; Setting use-package-expand-minimally to (t) results in a more compact output ;; Setting use-package-expand-minimally to (t) results in a more compact output
;; that emphasizes performance over clarity. ;; that emphasizes performance over clarity.
(setq use-package-expand-minimally (not minimal-emacs-debug)) (setq use-package-expand-minimally (not noninteractive))
(setq package-quickstart-file (setq package-quickstart-file
(expand-file-name "package-quickstart.el" user-emacs-directory)) (expand-file-name "package-quickstart.el" user-emacs-directory))