From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: add directories to load-path
Date: Mon, 12 Oct 2009 03:24:05 +0000 (UTC) [thread overview]
Message-ID: <hau7gl$lui$2@reader1.panix.com> (raw)
In-Reply-To: mailman.6708.1253017158.2239.help-gnu-emacs@gnu.org
In article <mailman.6708.1253017158.2239.help-gnu-emacs@gnu.org>,
Maurizio Vitale <maurizio.vitale@polymath-solutions.com> wrote:
>>>>>> "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"))
What's that slash after the pm?
First time I've seen a slash in the name of a function...
Thanks,
David
next prev parent reply other threads:[~2009-10-12 3: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
[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 [this message]
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='hau7gl$lui$2@reader1.panix.com' \
--to=dkcombs@panix.com \
--cc=help-gnu-emacs@gnu.org \
/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).