From: hazlup <robjsargent@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: Ruby evaluation.
Date: Sat, 25 Sep 2010 15:37:27 -0700 (PDT) [thread overview]
Message-ID: <29808774.post@talk.nabble.com> (raw)
In-Reply-To: <20100925193617.GH11011@groll.co.za>
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.
next prev parent reply other threads:[~2010-09-25 22:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 19:33 Ruby evaluation A Soare
2010-09-25 5:56 ` Jonathan Groll
2010-09-25 16:15 ` hazlup
2010-09-25 19:36 ` Jonathan Groll
2010-09-25 19:48 ` Tom Rauchenwald
2010-09-25 22:37 ` hazlup [this message]
[not found] <mailman.0.1285356841.13588.help-gnu-emacs@gnu.org>
2010-09-24 23:06 ` Pascal J. Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29808774.post@talk.nabble.com \
--to=robjsargent@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.