all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Knight <steven@knight.cx>
To: Ari King <ari.brandeis.king@gmail.com>, help-gnu-emacs@gnu.org
Subject: Re: How to Port Setup to Different OS?
Date: Wed, 05 Nov 2014 18:25:53 -0500	[thread overview]
Message-ID: <545AB201.9080803@knight.cx> (raw)
In-Reply-To: <20cfbb69-0044-4f3f-ac98-0c3327d92978@googlegroups.com>

Hello Ari,

I suggest use-package[1].  Here's how you would use it:

; require package, update 'package-archives
(require 'package)
(add-to-list 'package-archives
               '("melpa" . "http://melpa.org/packages/") t)
(package-refresh-contents)
(package-initialize)

; install use-package if necessary
(unless (package-installed-p 'use-package)
   (package-install 'use-package))

; load use-package
(require 'use-package)

; install (if necessary) dash, better-defaults and web-mode
(use-package dash :ensure dash)
(use-package better-defaults :ensure better-defaults)
(use-package web-mode :ensure web-mode)

The ":ensure" option tells use-package to install the package if 
necessary [2].

Thank you,

[1] https://github.com/jwiegley/use-package
[2] https://github.com/jwiegley/use-package#for-packageel-users


--
Steven Knight steven@knight.cx <mailto:steven@knight.cx>

On Wed 05 Nov 2014 01:39:32 PM EST, 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.
>
> -Ari
>



  parent reply	other threads:[~2014-11-05 23:25 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
2014-11-05 23:25 ` Steven Knight [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545AB201.9080803@knight.cx \
    --to=steven@knight.cx \
    --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.
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.