From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?S=E9bastien_Kirche?= Newsgroups: gmane.emacs.help Subject: Auto load at startup Date: Mon, 13 Oct 2003 16:43:33 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <9E892358-FD8B-11D7-9D68-000393861220@sage.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1066056415 6566 80.91.224.253 (13 Oct 2003 14:46:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2003 14:46:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 16:46:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A93yG-0006xc-00 for ; Mon, 13 Oct 2003 16:46:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A93wx-0000S5-GL for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Oct 2003 10:45:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A93wS-0000RX-Me for help-gnu-emacs@gnu.org; Mon, 13 Oct 2003 10:45:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A93vv-0000LK-Pb for help-gnu-emacs@gnu.org; Mon, 13 Oct 2003 10:44:58 -0400 Original-Received: from [195.25.216.129] (helo=Mis.sage.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A93vv-0000L2-D7 for help-gnu-emacs@gnu.org; Mon, 13 Oct 2003 10:44:27 -0400 Original-Received: from sage.com (SEKIMACG4 [172.18.3.54]) by Mis.sage.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id TFSF0JR3; Mon, 13 Oct 2003 16:47:23 +0200 Original-To: emacs-help X-Mailer: Apple Mail (2.552) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13157 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13157 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=20= 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=20 directory | is not necessary that one, where your script is executed at the=20 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=20 directory. `---- I tried this tip that seems to work, but I would like to understand why=20= the subdirs.el fails/isn't sufficient. Thanks for help S=E9bastien Kirche=