To add the repository put this before the call to package-initialize
in your init.el
file.
+ To add the snapshot package repository put this before the
+ call to package-initialize
in
+ your init.el
file.
+
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
+ or to add the stable package repository, use this snippet:
+ +(require 'package)
+(add-to-list 'package-archives
+ '("melpa-stable" . "http://melpa-stable.milkbox.net/packages/") t)
+
In Emacs < 24, you'll also need to explicitly include the GNU
ELPA archive, which provides important compatibility libraries like cl-lib
:
(when (< emacs-major-version 24)