Skip to content

Commit

Permalink
Moved package-refresh-content from preload to afterload (after requir…
Browse files Browse the repository at this point in the history
…e prelude-package gets loaded)
  • Loading branch information
lyderichti59 committed May 29, 2024
1 parent dfc5c93 commit 4058e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions personal/preload/user_preload.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 4 additions & 0 deletions personal/user_config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)

;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit 4058e20

Please sign in to comment.