From: Gnutux <tuxliste@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: add directories to load-path
Date: Tue, 15 Sep 2009 20:16:26 +0900 [thread overview]
Message-ID: <87y6ogcvat.wl%tuxliste@gmail.com> (raw)
In-Reply-To: <87zl8w3h26.fsf@online.de>
At Tue, 15 Sep 2009 07:36:33 +0200,
henry atting <nsmp_01@online.de> 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)
next prev parent reply other threads:[~2009-09-15 11:16 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6ogcvat.wl%tuxliste@gmail.com \
--to=tuxliste@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.