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" . "https://melpa.org/packages/"))

(package-initialize)

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

(use-package try
:ensure t)

(use-package which-key
:ensure t
:config
(which-key-mode))

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