1
0
Fork 0

Fix ‘list-packages’ forgetting about archive contents

This commit is contained in:
Tom Willemse 2019-06-22 16:26:02 -07:00
parent 46b25df002
commit e584d92941

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 20190314002658 ;; Version: 20190622162418
;; This program is free software; you can redistribute it and/or modify ;; 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 ;; it under the terms of the GNU General Public License as published by
@ -36,6 +36,18 @@
(require 'package) (require 'package)
(require 'package-x) (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 itll 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 ;;;###autoload
(add-to-list 'package-archives (add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/")) '("melpa" . "https://melpa.org/packages/"))