How to Set up MELPA

2020-04-16

Tags:
Categories:

MELPA is a package repository for Emacs.

Add the following to your ~/.emacs file:

(require 'package)
(add-to-list 'package-archives
	     '("melpa-stable" .
	       "https://stable.melpa.org/packages/") t)
(package-initialize)

If you edited the file directly in Emacs, then run M-x eval-buffer to reload the configuration (otherwise you'd need to restart Emacs).

Run M-x package-refresh-contents.

Sources

MELPA: Getting Started
https://melpa.org/#/getting-started
EmacsWiki: Init File
https://www.emacswiki.org/emacs/InitFile