diff options
| author | John Wiegley | 2022-11-15 08:21:22 -0800 |
|---|---|---|
| committer | GitHub | 2022-11-15 08:21:22 -0800 |
| commit | 9b476ae71c72239e02af4f98bd7eba0cb243bd0a (patch) | |
| tree | eb727547b179d0d537754a513267464d758810fa | |
| parent | ae301ad36d6c0b5a10dceb35778c5a66617a8d9e (diff) | |
| parent | 6a26c55d70a653af8606166d2b24b2c1516647dc (diff) | |
| download | emacs-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.texi | 43 |
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 | ||
| 68 | Installation | 68 | Installation |
| 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 | |||
| 119 | its development repository. | 119 | its 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 | ||
| 130 | use-package is available from Melpa and Melpa-Stable. If you haven't used | 130 | use-package is available from GNU ELPA. If you haven't used Emacs' |
| 131 | Emacs' package manager before, then it is high time you familiarize yourself | 131 | package manager before, then it is high time you familiarize yourself |
| 132 | with it by reading the documentation in the Emacs manual, see | 132 | with 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 | 135 | First, you need to update the local package list using: |
| 136 | @item | ||
| 137 | To 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 | ||
| 148 | To 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 | |||
| 157 | Once you have added your preferred archive, you need to update the | ||
| 158 | local package list using: | ||
| 159 | 136 | ||
| 160 | @example | 137 | @example |
| 161 | M-x package-refresh-contents RET | 138 | M-x package-refresh-contents RET |
| 162 | @end example | 139 | @end example |
| 163 | 140 | ||
| 164 | Once you have done that, you can install use-package and its dependencies | 141 | Once you have done that, you can install use-package and its |
| 165 | using: | 142 | dependencies using: |
| 166 | 143 | ||
| 167 | @example | 144 | @example |
| 168 | M-x package-install RET use-package RET | 145 | M-x package-install RET use-package RET |