Skip to content

Instantly share code, notes, and snippets.

@ryukinix
Created February 28, 2019 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryukinix/1ec3c83d60acaa29755901f7409f2c04 to your computer and use it in GitHub Desktop.
Save ryukinix/1ec3c83d60acaa29755901f7409f2c04 to your computer and use it in GitHub Desktop.
(require 'package)
(setq packages-archives '("melpa" . "https://melpa.org/packages/"))
(defvar *my-packages* '(company
slime-company
doom-themes
powerline
airline-themes)
"My wonderful packages")
(defun ensure-package (package)
"Install PACKAGE if is not already installed."
(unless (package-installed-p package)
(package-install package)))
(package-initialize)
(package-refresh-contents)
(mapcar #'ensure-package *my-packages*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment