Skip to content

Commit

Permalink
Fix package-initialize being called too late
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed May 9, 2019
1 parent 8caa461 commit 4ebdeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
(defvar ublt/package-archives package-archives)
(add-hook 'after-init-hook (lambda () (setq package-archives ublt/package-archives)))

(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))

(dolist (p ublt/packages)
(ublt/package-install p))

(package-initialize)
(require 'use-package)
(require 'use-package-ensure)
(setq
Expand Down

0 comments on commit 4ebdeec

Please sign in to comment.