From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: for loading own lisp functions, if some in separated files, automatically Date: Wed, 15 Jul 2009 00:05:34 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4a5d0f26$0$48241$14726298@news.sunsite.dk> References: <1247499249.814312@news.aic.at> <1247593396.497447@news.aic.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247614887 26851 80.91.229.12 (14 Jul 2009 23:41:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 23:41:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 01:41:20 2009 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 1MQrcd-0002S0-0l for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2009 01:41:19 +0200 Original-Received: from localhost ([127.0.0.1]:47021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQrcc-0005BJ-76 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 19:41:18 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1247593396.497447@news.aic.at> Original-Lines: 20 Original-NNTP-Posting-Host: 62.56.59.26 Original-X-Trace: news.sunsite.dk DXC=[0nj9C`iJUZ077<0>RG1[Bg<0aH5P\VT\m5_SIbVU_42Df:PaKXTcL2h5ahoT_kF_>m>CYcV_JdmYaZh2UZ?DnJl7^Pb6_ Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:170889 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:66082 Archived-At: Erhy wrote: > > So I see, there is a dir with .el files and a separate command file, > where each of this .el marked to be loaded. > I hoped there is a standard way, to coordinate the content of the > directory and the associated lines in the command file automatically. > > Thank you talking about > Erhy You mean something like this? (loop for lib in (directory-files "~/my-emacs-packages/" 't "elc?$" 't) do (load-library lib)) Although that will attempt to load both the .el and .elc should both exist. HTH, Colin S. Miller -- Replace the obvious in my email address with the first three letters of the hostname to reply.