From: "Sébastien Kirche" <sebastien.kirche@sage.com>
Subject: Auto load at startup
Date: Mon, 13 Oct 2003 16:43:33 +0200 [thread overview]
Message-ID: <9E892358-FD8B-11D7-9D68-000393861220@sage.com> (raw)
Hi,
for auto-loading elisp libraries at startup from a custom directory,
I though it was necessary to add something like
(add-to-list 'load-path "~/.my_elisp_dir/")
but it seems like emacs don't care of subdirs of my_elisp_dir.
Thus I have errors at startup if I add some
(require 'package)
if the named package is in a subdir.
But i put inside my_elisp_dir a file subdirs.el that *sould* have load
these packages ?
Also, i found the following in the emacswiki :
,----[ Including subdirectories ]
|
| By default Emacs doesn't include subdirectories of a directory
| which is added to load-path. But you can do it by issuing a command
| in startup file:
|
| (normal-top-level-add-subdirs-to-load-path)
|
| which will add all subdirs of current directory. Note: current
directory
| is not necessary that one, where your script is executed at the
moment.
| So you first need to change directory to required one:
|
| (progn (cd "~/elisp") (normal-top-level-add-subdirs-to-load-path))
|
| In this example assumed that you want to add all subdirs of ~/elisp
directory.
`----
I tried this tip that seems to work, but I would like to understand why
the subdirs.el fails/isn't sufficient.
Thanks for help
Sébastien Kirche
next reply other threads:[~2003-10-13 14:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-13 14:43 Sébastien Kirche [this message]
[not found] <mailman.1597.1066056301.21628.help-gnu-emacs@gnu.org>
2003-10-13 17:43 ` Auto load at startup Kevin Rodgers
2003-10-14 8:43 ` Sébastien Kirche
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=9E892358-FD8B-11D7-9D68-000393861220@sage.com \
--to=sebastien.kirche@sage.com \
/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).