summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-18 21:38:21 +0100
committerAlan Pearce2013-05-18 21:38:21 +0100
commit98500a2e5f73f72d4b120ef98cab40f8a225d212 (patch)
treecdb83c14e85f732a3f85efa7f5b55d3f355bfbda /emacs
parent2815b63c2be710ebf9d77104e2a0ae1a9f1f925d (diff)
downloadnixfiles-98500a2e5f73f72d4b120ef98cab40f8a225d212.tar.lz
nixfiles-98500a2e5f73f72d4b120ef98cab40f8a225d212.tar.zst
nixfiles-98500a2e5f73f72d4b120ef98cab40f8a225d212.zip
Emacs: set package-archives whilst compiling for bootstrapping awesomeness
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el12
1 files changed, 5 insertions, 7 deletions
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)