* Re: (snippet) Automatic calculation of load-path
[not found] <dfup44$pvb$1@newsg1.svr.pol.co.uk>
@ 2005-09-10 20:03 ` Reiner Steib
0 siblings, 0 replies; only message in thread
From: Reiner Steib @ 2005-09-10 20:03 UTC (permalink / raw)
On Sat, Sep 10 2005, Rupert Swarbrick wrote:
> This is designed to automatically find every directory below "dir"
> containing a .el file and plonk it in a list. The final line of the
> listing is used to add this list to load-path.
>
> I couldn't find another way of doing this through google, but may have
> missed something. Any comments/flames etc. gratefully received.
Look at subdirs.el (e.g. in /usr/share/emacs/site-lisp):
,----[ subdirs.el ]
| (if (fboundp 'normal-top-level-add-subdirs-to-load-path)
| (normal-top-level-add-subdirs-to-load-path))
`----
,----[ C-h f normal-top-level-add-subdirs-to-load-path RET ]
| normal-top-level-add-subdirs-to-load-path is a compiled Lisp
| function in `startup'.
| (normal-top-level-add-subdirs-to-load-path)
|
| Add all subdirectories of current directory to `load-path'.
| More precisely, this uses only the subdirectories whose names
| start with letters or digits; it excludes any subdirectory named `RCS'
| or `CVS', and any subdirectory that contains a file named `.nosearch'.
`----
Bye, Reiner.
Crosspost & Followup-To: gnu.emacs.help
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-10 20:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <dfup44$pvb$1@newsg1.svr.pol.co.uk>
2005-09-10 20:03 ` (snippet) Automatic calculation of load-path Reiner Steib
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).