diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-07-05 11:49:27 -0500 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-07-05 11:49:27 -0500 |
commit | f7841f24ae6ea0d36b5ad397268fd90fafdec1bd (patch) | |
tree | 3ba2566178e7c2ea4173cc8cd488fd4ba22dc5a1 | |
parent | ec31441f86cd2876a7223cea9bf053b21bcce9ce (diff) |
Fix: [packages] always initialize & refresh, even with v28
-rw-r--r-- | shoshin-config.el | 7 | ||||
-rw-r--r-- | shoshin-config.org | 13 |
2 files changed, 14 insertions, 6 deletions
diff --git a/shoshin-config.el b/shoshin-config.el index 28de47b..3718296 100644 --- a/shoshin-config.el +++ b/shoshin-config.el @@ -9,9 +9,10 @@ ;;; Package Management (when (< emacs-major-version 28) - (package-initialize) - (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/")) - (package-refresh-contents)) + (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))) + +(package-initialize) +(package-refresh-contents) (when (and (functionp #'native-comp-available-p) (native-comp-available-p)) (setq native-comp-always-compile t diff --git a/shoshin-config.org b/shoshin-config.org index 42fc8f0..eced968 100644 --- a/shoshin-config.org +++ b/shoshin-config.org @@ -116,9 +116,7 @@ distributions may not yet have it as an available package. #+name: add-nongnu-elpa #+begin_src emacs-lisp (when (< emacs-major-version 28) - (package-initialize) - (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/")) - (package-refresh-contents)) + (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/"))) #+end_src ** Installing Packages @@ -131,6 +129,15 @@ add its name to [[help:package-selected-packages][package-selected-packages]]. You can also use ~list-packages~ to browse, install and upgrade packages as well. +I'll initialize the package functionality and refresh the contents to look for +updates, and ensure any additional archives are fetched. this may have a startup +impact, but i'm not concerned about that. + +#+begin_src emacs-lisp + (package-initialize) + (package-refresh-contents) +#+end_src + ** Packages not in the default repos Any elisp package that is in Emacs's [[help:load-path][load-path]] can be ~require~'d and used. |