Skip to content

[:Query] on starter-kit.org #93

@doolio

Description

@doolio

@eschulte in the code snippet below from starter-kit.org you state that two packages are listed to be installed by default. Is that really the case? Isn't the variable starter-kit-packages set to nil or are the two packages installed later in the starter-kit e.g. magit in starter-kit-misc.org. Apologies if this is a silly question or if this is not the best way to raise a query on your project. Still very early on my journey with emacs. Helped enormously though by your starter-kit so many thanks. I've been trying to better understand your code and submitting some simple PRs.

  • ELPA archive repositories and two packages to install by default.
(setq package-archives
      '(("gnu"         . "http://elpa.gnu.org/packages/")
        ("org"         . "http://orgmode.org/elpa/")
        ("melpa"       . "http://melpa.milkbox.net/packages/")
        ("marmalade"   . "http://marmalade-repo.org/packages/")))
(package-initialize)

(defvar starter-kit-packages nil
  "Libraries that should be installed by default (currently none).")

(defun starter-kit-install-if-needed (&rest packages)
  "Install PACKAGES using ELPA if they are not loadable or installed locally."
  (when packages
    (unless package-archive-contents
      (package-refresh-contents))
    (dolist (package packages)
      (unless (or (starter-kit-loadable-p package)
                  (package-installed-p package))
        (package-install package)))))

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