From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Knight Newsgroups: gmane.emacs.help Subject: Re: How to Port Setup to Different OS? Date: Wed, 05 Nov 2014 18:25:53 -0500 Message-ID: <545AB201.9080803@knight.cx> References: <20cfbb69-0044-4f3f-ac98-0c3327d92978@googlegroups.com> Reply-To: steven@knight.cx NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1415230876 3951 80.91.229.3 (5 Nov 2014 23:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 23:41:16 +0000 (UTC) To: Ari King , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 00:41:11 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XmACM-0002wB-EV for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2014 00:41:10 +0100 Original-Received: from localhost ([::1]:49136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmACL-0006P3-WD for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 18:41:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm9xf-0007z3-VP for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 18:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm9xb-0005HX-4z for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 18:25:59 -0500 Original-Received: from knight.cx ([69.164.222.236]:39233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm9xb-0005HD-0p for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 18:25:55 -0500 Original-Received: from [192.168.1.182] (c-50-187-182-161.hsd1.nh.comcast.net [50.187.182.161]) by knight.cx (Postfix) with ESMTPSA id DBF0F18068; Wed, 5 Nov 2014 18:25:53 -0500 (EST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <20cfbb69-0044-4f3f-ac98-0c3327d92978@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 69.164.222.236 X-Mailman-Approved-At: Wed, 05 Nov 2014 18:40:54 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100777 Archived-At: 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 On Wed 05 Nov 2014 01:39:32 PM EST, Ari King 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 >