diff options
| author | Kévin Le Gouguec | 2022-12-27 15:40:43 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-12-31 10:48:48 +0100 |
| commit | 01acecc79c39538b8ed8789afd5ef6dc8facd4f3 (patch) | |
| tree | 99c430e881d754e2483ad9327c35c5e7da6d69d2 | |
| parent | 2a7e072e5396d00c17b7d2a12ce867138f6f8c19 (diff) | |
| download | emacs-01acecc79c39538b8ed8789afd5ef6dc8facd4f3.tar.gz emacs-01acecc79c39538b8ed8789afd5ef6dc8facd4f3.zip | |
Simplify introduction of use-package manual
* doc/misc/use-package.texi (Getting Started): Do not advise requiring
the package, since the macro is autoloaded; also correct the macro's
name. (Bug#60366)
| -rw-r--r-- | doc/misc/use-package.texi | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/doc/misc/use-package.texi b/doc/misc/use-package.texi index c587d23d74b..1d0e38a1eca 100644 --- a/doc/misc/use-package.texi +++ b/doc/misc/use-package.texi | |||
| @@ -132,19 +132,9 @@ do. | |||
| 132 | @cindex quick-start instructions | 132 | @cindex quick-start instructions |
| 133 | 133 | ||
| 134 | This chapter provides instructions and examples for quickly getting | 134 | This chapter provides instructions and examples for quickly getting |
| 135 | started with use-package. The first thing you need to do is make sure | 135 | started with use-package. In this manual, we say that each call to |
| 136 | that @file{use-package} itself is loaded. To do that, put this at the | 136 | the @code{use-package} macro in your init file is a @dfn{declaration}, |
| 137 | top of your init file: | 137 | to highlight the declarative nature of its syntax. |
| 138 | |||
| 139 | @lisp | ||
| 140 | (require 'use-package) | ||
| 141 | @end lisp | ||
| 142 | |||
| 143 | @cindex declaration | ||
| 144 | The above makes the @code{use-macro} available for us in the rest of | ||
| 145 | your init file. In this manual, we say that each call to | ||
| 146 | @code{use-macro} is a @dfn{declaration}, to highlight the declarative | ||
| 147 | nature of its syntax. | ||
| 148 | 138 | ||
| 149 | To unconditionally load a package named @samp{foo}, add the following | 139 | To unconditionally load a package named @samp{foo}, add the following |
| 150 | declaration to your init file: | 140 | declaration to your init file: |