Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Automatically install packages needed by the rest of init.el on a fresh computer.
(defun install-required-packages (package-list)
(when (>= emacs-major-version 24)
(mapc (lambda (package)
(unless (require 'package nil t)
(package-install 'package)))
(setq required-package-list '(bm icicles smex zenburn-theme))
(install-required-packages required-package-list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.