aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-06-22 16:26:02 -0700
committerGravatar Tom Willemse2019-06-22 16:27:02 -0700
commite584d92941b3af37ef65432b292db62f48df1ee9 (patch)
treefcf03e02153b1801e2a4b555d52aa4358178305a
parent46b25df002f361c251cb1a80a0d0f813333400cf (diff)
downloademacs-config-e584d92941b3af37ef65432b292db62f48df1ee9.tar.gz
emacs-config-e584d92941b3af37ef65432b292db62f48df1ee9.zip
Fix ‘list-packages’ forgetting about archive contents
-rw-r--r--oni-package.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/oni-package.el b/oni-package.el
index 6efd62c..f47147a 100644
--- a/oni-package.el
+++ b/oni-package.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190314002658
+;; Version: 20190622162418
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -36,6 +36,18 @@
(require 'package)
(require 'package-x)
+;;;; If I let Emacs decide when to run ‘package-initialize’ it seems to do it
+;;;; before adding my archives to the ‘package-archives’ variable. By disabling
+;;;; the automatic call at startup and telling it to run it only on
+;;;; ‘after-init-hook’ it’ll take my added package archives into account and I
+;;;; can once again properly see what new packages have been added when I
+;;;; refresh the package list.
+
+;;;###autoload
+(setq package-enable-at-startup nil)
+
+;;;###autoload (add-hook 'after-init-hook 'package-initialize)
+
;;;###autoload
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))