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/ _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs