From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: ruby-mode not started automatically Date: Wed, 18 Jun 2003 16:05:36 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llvzzarj.fsf@indigo.shootybangbang.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055949190 15524 80.91.224.249 (18 Jun 2003 15:13:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2003 15:13:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 17:13:09 2003 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 19SeaC-0003ij-00 for ; Wed, 18 Jun 2003 17:10:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SeZu-0004dn-AS for gnu-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2003 11:10:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!host217-44-221-185.range217-44.btcentralplus.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: host217-44-221-185.range217-44.btcentralplus.com (217.44.221.185) Original-X-Trace: fu-berlin.de 1055948434 23188103 217.44.221.185 (16 [170119]) X-Orig-Path: indigo.shootybangbang.com!news X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp 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:11052 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11052 David Wende wrote: > M-: (load "ruby-mode") > > does work and start the mode. > > I have the following 2 lines in my .emacs > > (add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) > (autoload 'ruby-mode "Ruby mode" "Ruby mode" t) > but this apparently does not work. The second arg to `autoload' is the file name string of the emacs lisp library to pass to `load'. It shouldn't be "Ruby mode"; try "ruby-mode" instead.