Fix ‘list-packages’ forgetting about archive contents
This commit is contained in:
parent
46b25df002
commit
e584d92941
1 changed files with 13 additions and 1 deletions
|
@ -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/"))
|
||||
|
|
Loading…
Reference in a new issue