From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gnutux Newsgroups: gmane.emacs.help Subject: Re: add directories to load-path Date: Tue, 15 Sep 2009 20:16:26 +0900 Message-ID: <87y6ogcvat.wl%tuxliste@gmail.com> References: <87zl8w3h26.fsf@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1253077368 1109 80.91.229.12 (16 Sep 2009 05:02:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 05:02:48 +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 Sep 16 07:02:41 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 1MnmfA-0006oe-Qx for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 07:02:41 +0200 Original-Received: from localhost ([127.0.0.1]:40355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnmfA-0007bY-D3 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 01:02:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnW0N-00049F-OX for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:15:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnW0I-00043z-A8 for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:15:26 -0400 Original-Received: from [199.232.76.173] (port=37195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnW0I-00043n-09 for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:15:22 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:27022) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MnW0H-0005Ny-Hv for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:15:21 -0400 Original-Received: from mail-yx0-f202.google.com ([209.85.210.202]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnW0E-0006iE-C1 for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:15:18 -0400 Original-Received: by yxe40 with SMTP id 40so5067175yxe.28 for ; Tue, 15 Sep 2009 04:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:from:to :newsgroups:subject:in-reply-to:references:user-agent:mime-version :content-type; bh=y0cITGqKaCXd4SF/HhfUZNQ9OhMbHoY6Ca+6pjMnkBE=; b=cXNrRz/6jmVQL4Q05YfE7l0cWmucL1PWvMMcrB2d/Pe4EwCCTZXbT2A1u/zpYv7beY KJ0CiDsttcuj22mjaKjCsntBpJ0WXnZzPWBN1a01laAO4j0eqao7I1yrn9zppCcMXa2q f42AyYiSoQ36jzUv+pbt8LnswM21xEPOf8ASg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:newsgroups:subject:in-reply-to:references :user-agent:mime-version:content-type; b=bCIH0tVr8dS+i8VDEhXznIP99nD1VTWvhJqu3K5iY9bnUdoG9rJmUB+sf2EsomqXue wAo5RyI1OgCYTQDnFyihM4O/uNg/iVVDc5gUuJgQ0YCracTD60hzFzCINb1DWyhOp5IM Etg8+kKaR98t/87XbB2Znh1HhKFy5k7GA51Tc= Original-Received: by 10.91.74.11 with SMTP id b11mr4558651agl.39.1253013317651; Tue, 15 Sep 2009 04:15:17 -0700 (PDT) Original-Received: from TdM.gmail.com (softbank219185161154.bbtec.net [219.185.161.154]) by mx.google.com with ESMTPS id 5sm1460693agc.47.2009.09.15.04.15.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Sep 2009 04:15:17 -0700 (PDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87zl8w3h26.fsf@online.de> User-Agent: Wanderlust/2.15.7 (Almost Unreal) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 16 Sep 2009 00:43:41 -0400 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:68191 Archived-At: At Tue, 15 Sep 2009 07:36:33 +0200, henry atting wrote: > > How can I add directories to the load-path *including* all > subdirectories? > > At present I do it this way > > (setq load-path (append '( "/some/directory" "/some/directory/subdirectory") load-path)) > > which is not very handy when a directory contains several different > subdirectories with elisp files. > > henry Taken from djcb's emacs or his website (http://emacs-fu.blogspot.com) - thanks by the way - here is what I use: ; Load recursively a directory (defconst elisp-path '("~/.emacs.d")) (mapcar '(lambda(p) (add-to-list 'load-path p) (cd p) (normal-top-level-add-subdirs-to-load-path)) elisp-path)