all repos — archive/dotfiles @ 98500a2e5f73f72d4b120ef98cab40f8a225d212

Superseded by nixfiles

Emacs: set package-archives whilst compiling for bootstrapping awesomeness
Alan Pearce alan@alanpearce.co.uk
Sat, 18 May 2013 21:38:21 +0100
commit

98500a2e5f73f72d4b120ef98cab40f8a225d212

parent

2815b63c2be710ebf9d77104e2a0ae1a9f1f925d

1 files changed, 5 insertions(+), 7 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -42,19 +42,17 @@ (interactive)   (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)