From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.help Subject: Re: An alternative to a monolithic ~/.emacs init file Date: Sat, 10 Nov 2007 10:13:47 -0700 Message-ID: References: <1194455637.485972.177570@s15g2000prm.googlegroups.com> <1194544126.425679.261670@e9g2000prf.googlegroups.com> <1194697099.703581.205890@i38g2000prf.googlegroups.com> Reply-To: tom@tromey.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194750667 11732 80.91.229.12 (11 Nov 2007 03:11:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2007 03:11:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: rustom Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 04:11:10 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ir3E5-0006QJ-O9 for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2007 04:11:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ir3Dt-0007e4-N6 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Nov 2007 22:10:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IquID-0007c9-W9 for help-gnu-emacs@gnu.org; Sat, 10 Nov 2007 12:38:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IquIB-0007aZ-V4 for help-gnu-emacs@gnu.org; Sat, 10 Nov 2007 12:38:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IquIB-0007aQ-Lz for help-gnu-emacs@gnu.org; Sat, 10 Nov 2007 12:38:47 -0500 Original-Received: from outbound-mail-88.bluehost.com ([74.220.211.8]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IquIB-0002XC-4R for help-gnu-emacs@gnu.org; Sat, 10 Nov 2007 12:38:47 -0500 Original-Received: (qmail 7009 invoked by uid 0); 10 Nov 2007 17:38:44 -0000 Original-Received: from unknown (HELO box8.bluehost.com) (69.89.17.8) by mailproxy5.bluehost.com with SMTP; 10 Nov 2007 17:38:44 -0000 Original-Received: from [207.189.196.47] (helo=opsy) by box8.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1IquI4-0003HQ-K4; Sat, 10 Nov 2007 10:38:42 -0700 X-Attribution: Tom In-Reply-To: <1194697099.703581.205890@i38g2000prf.googlegroups.com> (rustom's message of "Sat\, 10 Nov 2007 12\:18\:19 -0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Identified-User: {32111:box8.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 207.189.196.47 authed with tom+tromey.com} X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box8.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [32111 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 10 Nov 2007 22:10:37 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49128 Archived-At: >>>>> ">" == rustom writes: >> This way the .emacs can be nothing more than the two lines >> (load-loaddefs-from-directory "~/elisp/lib") >> (load-customizations-from-directory "~/elisp/lib") >> And there are no superfluous file traversals at emacs startup time >> Knowing emacs and its community I guess this functionality is already >> available! >> Question is what is it called :-) ELPA works this way, more or less. It isn't as simple as "drop in some elisp and work", since it provides some other features that require a bit more metadata. But, the basic idea is the same: extract autoloads and byte-compile at package install time; and read the minimal number of files and only evaluate autoloads at package evaluation time. For more info: http://tromey.com/elpa/ There are some other, more minimal, elisp install packages. They are listed on the wiki. Tom