From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: Ari King <ari.brandeis.king@gmail.com>
Subject: Re: How to Port Setup to Different OS?
Date: Wed, 5 Nov 2014 14:39:26 -0800 [thread overview]
Message-ID: <CAOj2CQRv8PVLOWjjJe-FZ+pRVmekOiez_WVxmGoxv6-RwmOMkg@mail.gmail.com> (raw)
In-Reply-To: <20cfbb69-0044-4f3f-ac98-0c3327d92978@googlegroups.com>
Ari King <ari.brandeis.king@gmail.com> wrote:
> I've installed and configured Emacs with various ELPA, MELPA,
> Marmalade packages on Ubuntu. I'd like to take this setup and re-use
> it with Emacs on Windows. Is there a way for me to have emacs
> automatically install the packages rather than manually selecting them
> via the package manager? Thanks.
I just put something like the following in my init file. You have to
list the packages explicitly, but you'd probably need to do that anyway.
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
(let* ((packages '(some-mode
some-other-mode
and-so-on))
(needed (cl-loop for pkg in packages
unless (package-installed-p pkg) collect pkg)))
(when needed
(package-refresh-contents)
(mapc #'package-install needed)))
--
john
next prev parent reply other threads:[~2014-11-05 22:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 18:39 How to Port Setup to Different OS? Ari King
2014-11-05 18:42 ` Grant Rettke
2014-11-06 0:17 ` Alexis
2014-11-05 22:39 ` John Mastro [this message]
2014-11-05 23:25 ` Steven Knight
2014-11-06 2:40 ` Jorge Araya Navarro
2014-11-06 18:43 ` Grant Rettke
2014-11-06 21:48 ` Jorge Araya Navarro
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOj2CQRv8PVLOWjjJe-FZ+pRVmekOiez_WVxmGoxv6-RwmOMkg@mail.gmail.com \
--to=john.b.mastro@gmail.com \
--cc=ari.brandeis.king@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).