From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: document package.el Date: Fri, 27 Aug 2010 00:27:32 +0100 Organization: JURTA Message-ID: <87lj7t3qj7.fsf@mail.jurta.org> References: <4C5CBA32.9000109@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282865937 31526 80.91.229.12 (26 Aug 2010 23:38:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Aug 2010 23:38:57 +0000 (UTC) Cc: tromey@redhat.com, emacs-devel@gnu.org To: Christoph Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 27 01:38:56 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oom21-0004l8-Cv for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 01:38:53 +0200 Original-Received: from localhost ([127.0.0.1]:59023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oom20-0004Vp-20 for ged-emacs-devel@m.gmane.org; Thu, 26 Aug 2010 19:38:52 -0400 Original-Received: from [140.186.70.92] (port=35986 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oom0d-0003sr-8z for emacs-devel@gnu.org; Thu, 26 Aug 2010 19:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oom0X-0007Of-Ha for emacs-devel@gnu.org; Thu, 26 Aug 2010 19:37:26 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:47354) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oom0X-0007Oa-Dj for emacs-devel@gnu.org; Thu, 26 Aug 2010 19:37:21 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 0092F6E8059; Thu, 26 Aug 2010 16:37:20 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id D4941451C15B; Thu, 26 Aug 2010 16:37:18 -0700 (PDT) In-Reply-To: <4C5CBA32.9000109@gmail.com> (Christoph's message of "Fri, 06 Aug 2010 19:43:14 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129270 Archived-At: > I am wondering, is there a way to give package.el a list of packages to go > download from ELPA and install? I would also want it to use this list to > check for new versions of all packages in the list. Either on startup or on > command (M-x package-upgrade). Also, on a new installation of Emacs I would > just tell it "Go get the packages in the list" and it would recreate my > package configuration on that machine. All I need in version control is the > list as part of my init.el, instead of putting the entire elpa/ directory > under version control and deploying it to the new machine. I guess we need something like `require', e.g. (package-require FEATURE &optional FILENAME NOERROR). So you could put in your .emacs: (package-require 'company) (package-require 'js2-mode) (package-require 'rainbow-mode) and it will take care of installing and activating your preferred packages on a new installation.