Skip to main content

C'est la Z

Using Emacs - Setting up the Package Manager

This video will step you through setting up Emacs to use MELPA for packages.

We configured emacs by creating a folder named .emacs.d and creating a file within it named init.el.

Here's the contents of that file:

(setq inhibit-startup-message t)

(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . ""))


;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-install 'use-package))

(use-package try
:ensure t)

(use-package which-key
:ensure t

The last two inituse-package clauses install two helpful packages:

  • try: let's you try packages without installing them.
  • which-key: brings up help on key combinations.

Relavent links:

comments powered by Disqus