[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ruby evaluation.
From: |
hazlup |
Subject: |
Re: Ruby evaluation. |
Date: |
Sat, 25 Sep 2010 15:37:27 -0700 (PDT) |
Perfect.
I had actually done load-lib ruby-mode before trying M-x run ruby.
I think this is exactly what the OP (and followers) will need.
Jonathan Groll-2 wrote:
>
> On Sat, Sep 25, 2010 at 09:15:43AM -0700, hazlup wrote:
>>
>>I have vanilla emacs-23.1 and M-x run-ruby [No match]
>>so I suspect you installed something ruby related. The OP needs that
info.
>>
>
> I have the following in my ~/.emacs (note the run-ruby):
>
> ;; ruby mode
> (autoload 'ruby-mode "ruby-mode" "Load ruby-mode")
> (add-hook 'ruby-mode-hook 'turn-on-font-lock)
>
> ;; associate ruby-mode with .rb files and .rjs files
> (add-to-list 'auto-mode-alist '(".rb$" . ruby-mode))
> (add-to-list 'auto-mode-alist '(".rjs$" . ruby-mode))
> (add-to-list 'auto-mode-alist '(".rake$" . ruby-mode))
>
> (setq interpreter-mode-alist (append '(("ruby" . ruby-mode))
> interpreter-mode-alist))
>
> ;; Ruby-Interpreter:
> (autoload 'run-ruby "inf-ruby"
> "Run an inferior Ruby process")
> (autoload 'inf-ruby-keys "inf-ruby"
> "Set local key defs for inf-ruby in ruby-mode")
> (add-hook 'ruby-mode-hook
> '(lambda ()
> (inf-ruby-keys)
> ))
>
> Regards,
> Jonathan
>
>
>
--
View this message in context:
http://old.nabble.com/Ruby-evaluation.-tp29801866p29808774.html
Sent from the Emacs - Help mailing list archive at Nabble.com.