all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jonathan Groll <lists@groll.co.za>
To: help-gnu-emacs@gnu.org
Subject: Re: Ruby evaluation.
Date: Sat, 25 Sep 2010 21:36:17 +0200	[thread overview]
Message-ID: <20100925193617.GH11011@groll.co.za> (raw)
In-Reply-To: <29806968.post@talk.nabble.com>

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



  reply	other threads:[~2010-09-25 19:36 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 [this message]
2010-09-25 19:48       ` Tom Rauchenwald
2010-09-25 22:37       ` hazlup
     [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=20100925193617.GH11011@groll.co.za \
    --to=lists@groll.co.za \
    --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.