aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2022-11-15 08:21:22 -0800
committerGitHub2022-11-15 08:21:22 -0800
commit9b476ae71c72239e02af4f98bd7eba0cb243bd0a (patch)
treeeb727547b179d0d537754a513267464d758810fa
parentae301ad36d6c0b5a10dceb35778c5a66617a8d9e (diff)
parent6a26c55d70a653af8606166d2b24b2c1516647dc (diff)
downloademacs-9b476ae71c72239e02af4f98bd7eba0cb243bd0a.tar.gz
emacs-9b476ae71c72239e02af4f98bd7eba0cb243bd0a.zip
Merge pull request from skangas/gnu-elpa
GitHub-reference: https://github.com/jwiegley/use-package/issues/1017
-rw-r--r--doc/misc/use-package.texi43
1 files changed, 10 insertions, 33 deletions
diff --git a/doc/misc/use-package.texi b/doc/misc/use-package.texi
index 2b868564372..de6351c592f 100644
--- a/doc/misc/use-package.texi
+++ b/doc/misc/use-package.texi
@@ -67,7 +67,7 @@ around 2 seconds, with no loss of functionality!
67 67
68Installation 68Installation
69 69
70* Installing from an Elpa Archive:: 70* Installing from GNU ELPA::
71* Installing from the Git Repository:: 71* Installing from the Git Repository::
72* Post-Installation Tasks:: 72* Post-Installation Tasks::
73 73
@@ -119,50 +119,27 @@ use-package can be installed using Emacs' package manager or manually from
119its development repository. 119its development repository.
120 120
121@menu 121@menu
122* Installing from an Elpa Archive:: 122* Installing from GNU ELPA::
123* Installing from the Git Repository:: 123* Installing from the Git Repository::
124* Post-Installation Tasks:: 124* Post-Installation Tasks::
125@end menu 125@end menu
126 126
127@node Installing from an Elpa Archive 127@node Installing from GNU ELPA
128@section Installing from an Elpa Archive 128@section Installing from GNU ELPA
129 129
130use-package is available from Melpa and Melpa-Stable. If you haven't used 130use-package is available from GNU ELPA. If you haven't used Emacs'
131Emacs' package manager before, then it is high time you familiarize yourself 131package manager before, then it is high time you familiarize yourself
132with it by reading the documentation in the Emacs manual, see 132with it by reading the documentation in the Emacs manual, see
133@ref{Packages,,,emacs,}. Then add one of the archives to @code{package-archives}: 133@ref{Packages,,,emacs,}.
134 134
135@itemize 135First, you need to update the local package list using:
136@item
137To use Melpa:
138@end itemize
139
140@lisp
141(require 'package)
142(add-to-list 'package-archives
143 '("melpa" . "https://melpa.org/packages/") t)
144@end lisp
145
146@itemize
147@item
148To use Melpa-Stable:
149@end itemize
150
151@lisp
152(require 'package)
153(add-to-list 'package-archives
154 '("melpa-stable" . "https://stable.melpa.org/packages/") t)
155@end lisp
156
157Once you have added your preferred archive, you need to update the
158local package list using:
159 136
160@example 137@example
161M-x package-refresh-contents RET 138M-x package-refresh-contents RET
162@end example 139@end example
163 140
164Once you have done that, you can install use-package and its dependencies 141Once you have done that, you can install use-package and its
165using: 142dependencies using:
166 143
167@example 144@example
168M-x package-install RET use-package RET 145M-x package-install RET use-package RET