Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Suggestion: include package-refresh-contents for automated init.el example #168

Open
xpe opened this issue Nov 10, 2014 · 0 comments
Open

Comments

@xpe
Copy link

xpe commented Nov 10, 2014

I suggest expanding your writeup to include this right after package-initialize:

(unless package-archive-contents
  (package-refresh-contents))

Your write-up currently suggests this code:

(defvar my-packages '(better-defaults paredit idle-highlight-mode ido-ubiquitous
                                      find-file-in-project magit smex scpaste))
(package-initialize)
(dolist (p my-packages)
  (when (not (package-installed-p p))
    (package-install p)))

I found it to be incomplete; the package-refresh-contents is required for a brand-new installation, in my experience. I got the code from http://stackoverflow.com/a/10093312/109618

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant