From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lucas Newsgroups: gmane.emacs.help Subject: Re: How to configure Emacs to autoload modes? Date: Fri, 21 Feb 2003 12:50:07 +0100 Organization: Conteur Corp. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <86k7ft6f49.fsf@canada.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045829558 31172 80.91.224.249 (21 Feb 2003 12:12:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Feb 2003 12:12:38 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18mC2e-00086b-00 for ; Fri, 21 Feb 2003 13:12:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18mBn4-0004uw-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Feb 2003 06:56:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!wanadoo.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: alyon-110-1-20-64.abo.wanadoo.fr Original-X-Trace: news-reader12.wanadoo.fr 1045828204 4617 81.50.174.64 (21 Feb 2003 11:50:04 GMT) Original-X-Complaints-To: abuse@wanadoo.fr Original-NNTP-Posting-Date: 21 Feb 2003 11:50:04 GMT User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386-msvc-nt5.1.2600) Cancel-Lock: sha1:6W+GYRbIIna2ogxh+IkBIfNkosk= Original-Xref: shelby.stanford.edu gnu.emacs.help:110473 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6975 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6975 Un beau jour, Peter Wu nous a dit: > Lucas writes: > >> Un beau jour, "Peter Wu" nous a dit: >> >>>> But I'm sure you'll get the same result by editing files.el, with being >>>> ((((careful)) (to) '(((parenthesis))))) and "strings" that end >>>> anywhere". >>> >>> However, it does not work for me after I modified the files.el and >>> loaddefs.el. What could I have missed? Thanks! >> >> Maybe M-x byte-compile-and-load ? > > All my previous tests include a byte-compile. But this did not help. :( Hmmm, that looks strange... Did you try to remove the .elc, and then re-bye-compile, it worked for me, when I had problems. And with adding a (load "python-mode") or thing like that in your .emacs, so that it loads the mode (slows Emacs a bit, though) at each startup... > I think Emacs must be reading some files at bootup and load some > modes. I'd like to know what those files are. Emacs should do something > according to those files to respond to various modes, say cc-mode. You can know the load path ( C-h v load-path ), and I think that most of the files in the path are loaded. You can even modify it, but I don't know why your python mode doesn't start if you set up the things correctly... -- Lucas