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:33:04 +0900 Message-ID: <87ocpcxx1r.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 1253077511 1368 80.91.229.12 (16 Sep 2009 05:05:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 05:05:11 +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:05:04 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 1MnmhT-0007Hb-6N for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 07:05:03 +0200 Original-Received: from localhost ([127.0.0.1]:39006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnmhS-0001i3-Nn for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 01:05:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnWGK-0003NP-EW for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:31:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnWGF-0003ME-Na for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:31:55 -0400 Original-Received: from [199.232.76.173] (port=59314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnWGF-0003MB-Hg for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:31:51 -0400 Original-Received: from mail-qy0-f192.google.com ([209.85.221.192]:58112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnWGF-0001YW-5N for help-gnu-emacs@gnu.org; Tue, 15 Sep 2009 07:31:51 -0400 Original-Received: by qyk30 with SMTP id 30so3392634qyk.5 for ; Tue, 15 Sep 2009 04:31:50 -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=O3gytraEugJLoNIGa0l66CnxsjJUb+m1cjCMeGWfkxsuk0DGMaDChWSq9V3NOP5JtX vM/x/kO98bcOVoz5Qd4vz9bHedNeP58rnTV4QC/G+cdc/rCyohlt7m8S0mHrJyVe0H0v NQAYE3L5mMOhXBG7u99riAlbpkcArnuUE5EMk= 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=N5megauKm9kpsrTWJIrA3LdLAQ+HB0jkalJ2H4ksHOJj8iM62AYlq/MM0mrb3Scp/i f7RI3B/fu6diw+HD7TAIVn5oR8kPcko0U3jlFZKgmB8pNR5HBYbYW06/ggWyWc8KiOEm hPChsYnONGk46G/If6olPLUwbzpHF8lh5ZaAs= Original-Received: by 10.224.102.207 with SMTP id h15mr6002421qao.139.1253014310694; Tue, 15 Sep 2009 04:31:50 -0700 (PDT) Original-Received: from TdM.gmail.com (softbank219185161154.bbtec.net [219.185.161.154]) by mx.google.com with ESMTPS id 20sm483544ywh.6.2009.09.15.04.31.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Sep 2009 04:31:50 -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:68193 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)