From: Philip Kaludercic <philipk@posteo.net>
To: pauline-galea@gmx.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Setting package archives
Date: Tue, 25 May 2021 20:29:42 +0000 [thread overview]
Message-ID: <87v976d0ax.fsf@icterid> (raw)
In-Reply-To: <trinity-5e8d094e-71af-42e1-8ac9-7e34550e2640-1621958927442@3c-app-mailcom-bs01> (pauline-galea@gmx.com's message of "Tue, 25 May 2021 18:08:47 +0200")
pauline-galea@gmx.com writes:
> How can I set package-archives in emacs
>
> I am using the following
>
> (defun gungadin-locate-archives ()
> "Installs package archives."
> (require 'package)
> (add-to-list 'package-archives
> '( ("gnu" . "https://elpa.gnu.org/packages/")
> ("melpa-stable" . "https://melpa.org/packages/")
> ("org" . "https://orgmode.org/elpa/")) )
> (package-initialize) )
You are adding a list *into* a list, instead of appending each of the
items *onto* the list.
What you probably want to do is
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
where the first `add-to-list' won't be necessary, because GNU ELPA is
configured by default.
--
Philip K.
prev parent reply other threads:[~2021-05-25 20:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-25 16:08 Setting package archives pauline-galea
2021-05-25 20:29 ` Philip Kaludercic [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v976d0ax.fsf@icterid \
--to=philipk@posteo.net \
--cc=help-gnu-emacs@gnu.org \
--cc=pauline-galea@gmx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.