Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
doolio opened this issue Sep 18, 2016 · 0 comments
Open

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

doolio opened this issue Sep 18, 2016 · 0 comments

Comments

@doolio
Copy link

doolio commented Sep 18, 2016

@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)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant