From 23e5c2b1ccf5e77349d55ee9578e03147e9b8e2e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 18 Aug 2014 18:18:54 +0900 Subject: [PATCH] emacs.el: reflesh before auto install packages --- emacs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 14a62f7..98006c4 100644 --- a/emacs.el +++ b/emacs.el @@ -130,11 +130,11 @@ IF OK-IF-ALREADY-EXISTS is true force download." (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize) - ;; (package-refresh-contents) (defun my-auto-install-package () "Install packages semi-automatically." (interactive) + (package-refresh-contents) (mapc (lambda (pkg) (or (package-installed-p pkg) (locate-library (symbol-name pkg))