From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.help Subject: Re: ruby-mode not started automatically Date: Wed, 18 Jun 2003 16:50:10 +0200 Organization: CWI, Amsterdam Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055948143 7258 80.91.224.249 (18 Jun 2003 14:55:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2003 14:55:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 16:55:40 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 19SeIg-0001RN-00 for ; Wed, 18 Jun 2003 16:52:39 +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 19SeGb-0006vJ-75 for gnu-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2003 10:50:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.indigo.ie!feeder.news.heanet.ie!surfnet.nl!news.surfnet.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: occarina.pna.cwi.nl Original-X-Trace: news.surfnet.nl 1055947810 22448 192.16.184.200 (18 Jun 2003 14:50:10 GMT) Original-X-Complaints-To: usenet@news.surfnet.nl Original-NNTP-Posting-Date: Wed, 18 Jun 2003 14:50:10 +0000 (UTC) In-Reply-To: (David Wende's message of "Wed, 18 Jun 2003 16:45:34 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:5ninrIwdGPCYZR3ukZwCYSw4Ch0= Original-Xref: shelby.stanford.edu gnu.emacs.help:114559 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:11051 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11051 David Wende writes: > Using emacs 21.2.1 under Win2K. > > Problem: > When I visit a ruby file (*.rb) the > ruby mode is NOT entered automatically. > > The file "ruby-mode.el" is apparently in the correct > place since a doing > > 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. Does this work? (add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode)) (autoload 'ruby-mode "ruby-mode" "Ruby mode" t) Lute. -- (spook) => "S Box jihad supercomputer" (insert-file-contents "~/.signature") => (error "`~/.signature' too rude")