[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add directories to load-path

From: Gnutux
Subject: Re: add directories to load-path
Date: Tue, 15 Sep 2009 20:33:04 +0900
User-agent: Wanderlust/2.15.7 (Almost Unreal)

At Tue, 15 Sep 2009 07:36:33 +0200,
henry atting <address@hidden> 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 ( - 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]