[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (snippet) Automatic calculation of load-path
From: |
Reiner Steib |
Subject: |
Re: (snippet) Automatic calculation of load-path |
Date: |
Sat, 10 Sep 2005 22:03:12 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: (snippet) Automatic calculation of load-path,
Reiner Steib <=