Browse Source

Add package updating before retrieval

Josh Bicking 8 years ago
parent
commit
545092fb23
1 changed files with 5 additions and 0 deletions
  1. 5 0
      emacs

+ 5 - 0
emacs

@@ -14,6 +14,7 @@
 ;; Disable blinking cursor
 (blink-cursor-mode 0)
   
+;; TODO finish fixing eval-last-s-exp
 ;;(defun evil-eval-prev-exp ()
   ;;(interactive)
   ;;(evil-append 1)
@@ -143,6 +144,10 @@
 	fuzzy
 	general))
 
+;; Update package contents
+(when (not package-archive-contents)
+    (package-refresh-contents))
+
 ;; Check that all packages are installed
 (apply 'ensure-package-installed required-packages)