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:29:36 +0900 Message-ID: <87ljkgtpi7.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 1253077442 1252 80.91.229.12 (16 Sep 2009 05:04:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 05:04:02 +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:03:55 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 1MnmgN-00075S-CH for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 07:03:55 +0200 Original-Received: from localhost ([127.0.0.1]:38504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnmgM-0000Ik-KS for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 01:03:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnWCy-0002Ml-7O for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:28:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnWCt-0002Kr-KK for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:28:27 -0400 Original-Received: from [199.232.76.173] (port=58010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnWCt-0002Kh-3w for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:28:23 -0400 Original-Received: from mail-yw0-f178.google.com ([209.85.211.178]:53947) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnWCs-0000eO-Ez for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:28:22 -0400 Original-Received: by ywh8 with SMTP id 8so6345166ywh.14 for ; Tue, 15 Sep 2009 04:28:21 -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=Ui/koEOc7aPq+du0dwGr8lKgOqh8nwkIaM7CJPH57HJWOwQveybygmioEAmuz7kgdS VrWU7Zl1ZZuDFJwM7D3zFSu83y3UTPajTjYkD0d21cfByUKh6Fb1GJ9/jgtd4YkO2Jbv +EcT52ZrXb6VGeq9VOfcNOwsnaQrJivgkfn3k= 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=g8ySb555MLUxjAsVLUfZyjESWMWa5ZauHI0bpqSXMk8JIM1Nj3qcmsl3heIC134gIB u5Hjp2lkxcQnBgpiIpjr/BsSZXr+RniblQiRgA2SeJECnUj2F+bQLL1jbnJANzmWBLoD tETZZWNCbFez/9FPg9kfuXWO/Nz57yFyG+vmM= Original-Received: by 10.90.242.1 with SMTP id p1mr4542995agh.105.1253014101457; Tue, 15 Sep 2009 04:28:21 -0700 (PDT) Original-Received: from TdM.gmail.com (softbank219185161154.bbtec.net [219.185.161.154]) by mx.google.com with ESMTPS id 4sm1466510aga.69.2009.09.15.04.28.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Sep 2009 04:28:20 -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 monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:68192 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)