From 98500a2e5f73f72d4b120ef98cab40f8a225d212 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 18 May 2013 21:38:21 +0100 Subject: Emacs: set package-archives whilst compiling for bootstrapping awesomeness --- emacs/init.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index c64a6ce3..46ecbdec 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -42,19 +42,17 @@ Values: `desktop', `server', `laptop'") (setq env/location (env/get-location))) ;;;; Package Management -(setq *elisp-dir* (expand-file-name "elisp/" user-emacs-directory) - package-archives '(("gnu" . "http://elpa.gnu.org/packages/") - ("marmalade" . "http://marmalade-repo.org/packages/") - ("melpa" . "http://melpa.milkbox.net/packages/") - ("org" . "http://orgmode.org/elpa/"))) - (eval-and-compile + (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") + ("marmalade" . "http://marmalade-repo.org/packages/") + ("melpa" . "http://melpa.milkbox.net/packages/") + ("org" . "http://orgmode.org/elpa/"))) (package-initialize)) (when (not package-archive-contents) (package-refresh-contents)) -(add-to-list 'load-path *elisp-dir*) +(add-to-list 'load-path (expand-file-name "elisp/" user-emacs-directory)) (mapc (lambda (package-name) (unless (package-installed-p package-name) -- cgit 1.4.1