[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add directories to load-path
From: |
David Combs |
Subject: |
Re: add directories to load-path |
Date: |
Mon, 12 Oct 2009 03:24:05 +0000 (UTC) |
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
- Re: add directories to load-path,
David Combs <=