From b1db7426b40988e5b280cb0c3a24b8325fa0312d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 25 Nov 2016 10:18:35 +0100 Subject: [PATCH] Add auto-package-update-maybe to after-init-hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I somehow missed that step… --- .gitignore | 2 ++ init.el | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0629273..629a8a0 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,8 @@ /smex-items /var/ /anaconda-mode/ +/.last-package-update-day + # All hail use-package! /elpa/ diff --git a/init.el b/init.el index e4a4d50..171bc29 100644 --- a/init.el +++ b/init.el @@ -829,7 +829,10 @@ :ensure t :config (setq auto-package-update-interval 7 - auto-package-update-delete-old-versions t)) + auto-package-update-delete-old-versions t) + ;; Let’s do this in after-init-hook, as use-package invocations may modify + ;; the list of installed packages + (add-hook 'after-init-hook 'auto-package-update-maybe)) (use-package cookie1 :demand t