Last active
August 29, 2015 13:56
-
-
Save rnjn/9205481 to your computer and use it in GitHub Desktop.
emacs setup
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
(setq installed-packages '( | |
color-theme | |
color-theme-solarized | |
yasnippet | |
auto-complete | |
js2-mode | |
ac-js2 | |
)) | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "http://melpa.milkbox.net/packages/"))) | |
;; init elpa | |
(package-initialize) | |
;; refresh contents if not present | |
(when (not package-archive-contents) (package-refresh-contents)) | |
;;; install packages from the list if not installed already | |
(dolist (package installed-packages) | |
(when (and (not (package-installed-p package)) | |
(assoc package package-archive-contents)) | |
(message "package is %s" package) | |
(package-install package))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment