summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-18 21:31:25 +0100
committerAlan Pearce2013-05-18 21:31:25 +0100
commitf863fa4ec320235719957b4309ca0e94d63b6d9d (patch)
tree3d707a510d2798dd36c994f9c97ad85e955795dd /emacs
parent929b15f975cba6515e44abe35c0ff2e807bc7be1 (diff)
downloaddotfiles-f863fa4ec320235719957b4309ca0e94d63b6d9d.tar.lz
dotfiles-f863fa4ec320235719957b4309ca0e94d63b6d9d.tar.zst
dotfiles-f863fa4ec320235719957b4309ca0e94d63b6d9d.zip
Emacs: download package lists if nonexistant to ease bootstrapping
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 08a793f..c64a6ce 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -51,6 +51,9 @@ Values: `desktop', `server', `laptop'")
 (eval-and-compile
   (package-initialize))
 
+(when (not package-archive-contents)
+  (package-refresh-contents))
+
 (add-to-list 'load-path *elisp-dir*)
 
 (mapc (lambda (package-name)