summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)