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

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

@xpe

Description

@xpe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions