From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.devel Subject: Re: document package.el Date: Fri, 27 Aug 2010 08:07:04 +0100 Message-ID: References: <4C5CBA32.9000109@gmail.com> <87lj7t3qj7.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282893819 10394 80.91.229.12 (27 Aug 2010 07:23:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2010 07:23:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 27 09:23:38 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 1OotHm-00054N-4w for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 09:23:38 +0200 Original-Received: from localhost ([127.0.0.1]:57989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OotHl-0001O5-B4 for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 03:23:37 -0400 Original-Received: from [140.186.70.92] (port=38272 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OotET-0008Ml-BW for emacs-devel@gnu.org; Fri, 27 Aug 2010 03:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oot21-0003gr-Ew for emacs-devel@gnu.org; Fri, 27 Aug 2010 03:07:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43676) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oot21-0003gn-9V for emacs-devel@gnu.org; Fri, 27 Aug 2010 03:07:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oot20-0007Ag-FF for emacs-devel@gnu.org; Fri, 27 Aug 2010 09:07:20 +0200 Original-Received: from cpc10-harb6-0-0-cust112.perr.cable.virginmedia.com ([92.232.137.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Aug 2010 09:07:20 +0200 Original-Received: from u.s.reddy by cpc10-harb6-0-0-cust112.perr.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Aug 2010 09:07:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc10-harb6-0-0-cust112.perr.cable.virginmedia.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <87lj7t3qj7.fsf@mail.jurta.org> 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:129284 Archived-At: On 8/27/2010 12:27 AM, Juri Linkov wrote: > 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. Separating out the .emacs issue, I think it would indeed be a good idea to have the preferred-package list stored somewhere so that we can use it for new installations. There is the ~/.emacs.d/elpa/archives directory. Would it be possible to copy this to a new installation in order to tell package.el what to install? To tell you the truth, I am quite unclear yet what package.el can do, not having seen a manual for it. Does it exist somewhere? Cheers, Uday