Created
September 8, 2014 14:16
-
-
Save dmb2/c3173d0731f9cb0792f4 to your computer and use it in GitHub Desktop.
Automatically install packages needed by the rest of init.el on a fresh computer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun install-required-packages (package-list) | |
(when (>= emacs-major-version 24) | |
(package-refresh-contents) | |
(mapc (lambda (package) | |
(unless (require 'package nil t) | |
(package-install 'package))) | |
package-list))) | |
(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