Edit the section on the installation of the selected packages

This commit is contained in:
Gerard Vermeulen 2021-12-30 09:03:28 +01:00
parent 59b74c7d26
commit 26fd987425

View File

@ -256,7 +256,7 @@ the ~custom-file~ as [[info:emacs#Saving Customizations][saving customizations (
(add-to-list 'initial-frame-alist '(width . 180)))
#+end_src
* Install the selected packages
* [[info:emacs#Package Installation][Install the selected packages (info)]]
:PROPERTIES:
:CUSTOM_ID: sec:install-selected-packages
:END:
@ -267,19 +267,16 @@ archives:
2. The [[https://elpa.nongnu.org/][NonGNU Emacs Lisp Package Archive]].
3. The [[https://melpa.org/#/][Milkypostmans Emacs Lisp Package Archive (MELPA)]].
In addition, the [[https://github.com/quelpa/quelpa][quelpa]] tool allows to fetch code from any source and build a
package on your computer before installation.
The code in listing [[lst:install-selected-packages]] assumes that the package
system is in a *virgin* state if the package [[https://github.com/emacscollective/no-littering][no-littering]] is not present.
Refreshing the contents of available packages at least once is a requirement in
order to be able to install and load any packages, hence also [[https://github.com/emacscollective/no-littering][no-littering]].
It also ensures installation of [[https://github.com/quelpa/quelpa][quelpa]] before ensuring installation of
[[https://www.reddit.com/r/emacs/comments/l6rcqh/undotree_repositorys_new_home_gitlab/][undo-tree]].
Finally, the call src_emacs-lisp{(package-install-selected-packages)} checks the
installation status of all packages in src_emacs-lisp{package-selected-packages}
and installs the missing packages after the user has agreed to its prompt.
package on your computer before installation. The code in listing
[[lst:install-selected-packages]] assumes that the package system is in a *virgin*
state if the package [[https://github.com/emacscollective/no-littering][no-littering]] is not present:
1. It installs and loads [[https://github.com/emacscollective/no-littering][no-littering]] after ensuring refreshing of the
contents of available packages.
2. It ensures installation of [[https://github.com/quelpa/quelpa][quelpa]] before ensuring installation of [[https://www.reddit.com/r/emacs/comments/l6rcqh/undotree_repositorys_new_home_gitlab/][undo-tree]].
3. It calls src_emacs-lisp{(package-install-selected-packages)} to check the
installation status of all packages in
src_emacs-lisp{package-selected-packages} and to install the missing packages
after the user has agreed to its prompt.
In case of normal Emacs usage, src_emacs-lisp{(package-list-packages)} refreshes
the contents of packages and allows to update packages to the latest version.