From 9f6961fc6a4c5f5e732d20b6200e51c0d4744e27 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sun, 22 Feb 2026 20:03:43 -0500 Subject: [PATCH] Do not package-initialize when using straight or elpaca --- init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 1e0d8a5..8936cdd 100644 --- a/init.el +++ b/init.el @@ -46,11 +46,13 @@ ;;; package.el -(when (bound-and-true-p minimal-emacs-package-initialize-and-refresh) +(when (and (bound-and-true-p minimal-emacs-package-initialize-and-refresh) + (not (or (fboundp 'straight-use-package) + (fboundp 'elpaca)))) ;; Initialize and refresh package contents again if needed (package-initialize) (unless (package-installed-p 'use-package) - (unless (seq-empty-p package-archive-contents) + (unless package-archive-contents (package-refresh-contents)) (package-install 'use-package)) (require 'use-package))