Merge pull request #2120 from terotil/master

Revise website "getting started" part, adapt content from README.md
This commit is contained in:
Steve Purcell 2014-10-28 14:50:56 +00:00
commit 88650efa9b

View file

@ -2,27 +2,38 @@
<section> <section>
<a name="installing"></a> <a name="installing"></a>
<h2>Installing</h2> <h2>Installing</h2>
<p>
To add the snapshot package repository put this before the <p>To use the MELPA repository, you'll need an Emacs with
call to <code>package-initialize</code> in <code>package.el</code>. Emacs 24 has <code>package.el</code>
your <code>init.el</code> file. bundled with it, and there's also
a <a href="http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el">version
you can use with Emacs 23</a>.
</p> </p>
<pre><code>(require 'package) <p>
(add-to-list 'package-archives Enable installation of packages from MELPA by adding an entry
'("melpa" . "http://melpa.org/packages/") t)</code></pre> to <code>package-archives</code> after <code>(require
'package)</code> and before the call
to <code>package-initialize</code> in
your <code>init.el</code> or <code>.emacs</code> file:
</p>
<p>or to add the stable package repository, use this snippet:</p> <pre><code>(require 'package) ;; You might already have this line
<pre><code>(require 'package)
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line</code></pre>
<p>
or to add the stable package repository, use this instead
of <code>"melpa"</code>:
</p>
<pre><code>(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)</code></pre> '("melpa-stable" . "http://stable.melpa.org/packages/") t)</code></pre>
<p>In Emacs &lt; 24, you'll also need to explicitly include the GNU
ELPA archive, which provides important compatibility libraries like <code>cl-lib</code>:</p>
<pre><code>(when (< emacs-major-version 24)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))</code></pre>
<h3>Customizations</h3> <h3>Customizations</h3>
<p> <p>
What if you only want some of your packages to be installed What if you only want some of your packages to be installed