help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ruby-mode not started automatically


From: Lute Kamstra
Subject: Re: ruby-mode not started automatically
Date: Wed, 18 Jun 2003 16:50:10 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

David Wende <dwende@lynxpn.com> 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")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]