From 4058e201d1f386e397c7143e483f828cc4cddce0 Mon Sep 17 00:00:00 2001 From: Lyderic Dutillieux Date: Wed, 29 May 2024 18:00:04 +0200 Subject: [PATCH] Moved package-refresh-content from preload to afterload (after require prelude-package gets loaded) --- personal/preload/user_preload.el | 4 ---- personal/user_config.el | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/personal/preload/user_preload.el b/personal/preload/user_preload.el index 6138866429..0ee806f595 100644 --- a/personal/preload/user_preload.el +++ b/personal/preload/user_preload.el @@ -8,10 +8,6 @@ '(highlight ((t (:background "#111111" :foreground nil)))) '(lsp-face-highlight-read ((t (:inherit highlight))))) -(unless package-archive-contents - (message "Refreshing package contents, this may take a while or hang if this laptop has no internet connection...") - (package-refresh-contents)) - ;; Setting personal theme (unless (package-installed-p 'dracula-theme) (package-install 'dracula-theme)) diff --git a/personal/user_config.el b/personal/user_config.el index 0ecd793f6b..af9c4f3c77 100644 --- a/personal/user_config.el +++ b/personal/user_config.el @@ -2,6 +2,10 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Install all the packages loaded from the custom.el +(unless package-archive-contents + (message "Refreshing package contents, this may take a while or hang if this laptop has no internet connection...") + (package-refresh-contents)) + (package-install-selected-packages) ;;;;;;;;;;;;;;;;;;