From 372dc580185c385405c02a2101fe4c14e2bd214c Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:56:39 -0400 Subject: [PATCH] Improve package and use-package configuration --- early-init.el | 5 +++++ init.el | 10 +++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/early-init.el b/early-init.el index 1a91e50..af3bf85 100644 --- a/early-init.el +++ b/early-init.el @@ -248,6 +248,11 @@ ;; loaded, but after `early-init-file'. (setq package-enable-at-startup t) +(setq package-quickstart nil) + +;; Always ensure packages are installed +(setq use-package-always-ensure t) + ;;; Load post-early-init.el (minimal-emacs-load-user-init "post-early-init.el") diff --git a/init.el b/init.el index af0559e..1a1bdb3 100644 --- a/init.el +++ b/init.el @@ -14,12 +14,13 @@ ;;; Code: +;;; Load pre-init.el (after package/use-package and before init) +(minimal-emacs-load-user-init "pre-init.el") + ;;; package.el (require 'package) -(setq package-quickstart nil) - (when (version< emacs-version "28") (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))) @@ -52,11 +53,6 @@ (eval-when-compile (require 'use-package)) -;; Always ensure packages are installed -(setq use-package-always-ensure t) - -;;; Load pre-init.el (after package/use-package and before init) -(minimal-emacs-load-user-init "pre-init.el") ;;; Load auto-compile and gcmh (use-package auto-compile