From: Reiner Steib <reinersteib+from-uce@imap.cc>
Subject: Re: (snippet) Automatic calculation of load-path
Date: Sat, 10 Sep 2005 22:03:12 +0200 [thread overview]
Message-ID: <v9fysc7ksf.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: dfup44$pvb$1@newsg1.svr.pol.co.uk
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/
parent reply other threads:[~2005-09-10 20:03 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <dfup44$pvb$1@newsg1.svr.pol.co.uk>]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9fysc7ksf.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+from-uce@imap.cc \
--cc=Reiner.Steib@gmx.de \
/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.
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).