From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: help-gnu-emacs@gnu.org
Subject: Re: add directories to load-path
Date: Tue, 15 Sep 2009 08:24:18 -0400 [thread overview]
Message-ID: <87ab0w4cr1.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: 87zl8w3h26.fsf@online.de
>>>>> "henry" == henry atting <nsmp_01@online.de> writes:
henry> How can I add directories to the load-path *including* all
henry> subdirectories?
henry> At present I do it this way
henry> (setq load-path (append '( "/some/directory"
henry> "/some/directory/subdirectory") load-path))
henry> which is not very handy when a directory contains several
henry> different subdirectories with elisp files.
I use this:
(defun pm/add-tree-to-load-path (dirs)
(mapc (lambda (dir)
(let* ((default-directory dir))
(setq load-path (cons dir load-path))
(normal-top-level-add-subdirs-to-load-path)))
dirs))
(pm/add-tree-to-load-path '("~/.emacs.d/config" "~/.emacs.d/packages"))
OTH,
Maurizio
next prev parent reply other threads:[~2009-09-15 12:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 5:36 add directories to load-path henry atting
2009-09-15 6:24 ` Gnutux
2009-09-15 6:24 ` Gnutux
2009-09-15 7:10 ` Gnutux
2009-09-15 7:22 ` Gnutux
2009-09-15 10:56 ` Bernardo
2009-09-15 11:05 ` Florian Kaufmann
2009-09-15 11:16 ` Gnutux
2009-09-15 11:29 ` Gnutux
2009-09-15 11:33 ` Gnutux
2009-09-15 11:52 ` Gnutux
2009-09-15 12:24 ` Maurizio Vitale [this message]
[not found] ` <mailman.6765.1253076234.2239.help-gnu-emacs@gnu.org>
2009-09-16 7:09 ` henry atting
[not found] ` <mailman.6708.1253017158.2239.help-gnu-emacs@gnu.org>
2009-10-12 3:24 ` David Combs
2009-10-12 11:40 ` Richard Riley
2009-10-13 7:12 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ab0w4cr1.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
--to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
--cc=help-gnu-emacs@gnu.org \
--cc=maurizio.vitale@polymath-solutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).