소스 검색

Add package updating before retrieval

Josh Bicking 8 년 전
부모
커밋
545092fb23
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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)