From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hazlup Newsgroups: gmane.emacs.help Subject: Re: Ruby evaluation. Date: Sat, 25 Sep 2010 15:37:27 -0700 (PDT) Message-ID: <29808774.post@talk.nabble.com> References: <20100925055650.GF11011@groll.co.za> <29806968.post@talk.nabble.com> <20100925193617.GH11011@groll.co.za> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285454910 26256 80.91.229.12 (25 Sep 2010 22:48:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Sep 2010 22:48:30 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 26 00:48:27 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OzdXe-0004Im-BO for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Sep 2010 00:48:26 +0200 Original-Received: from localhost ([127.0.0.1]:33281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzdXd-0006Fl-OY for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Sep 2010 18:48:25 -0400 Original-Received: from [140.186.70.92] (port=47495 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzdX0-0006D3-Qt for Help-gnu-emacs@gnu.org; Sat, 25 Sep 2010 18:47:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzdN3-0007bi-11 for Help-gnu-emacs@gnu.org; Sat, 25 Sep 2010 18:37:30 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:58984) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzdN2-0007bb-TN for Help-gnu-emacs@gnu.org; Sat, 25 Sep 2010 18:37:28 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OzdN1-00084l-PU for Help-gnu-emacs@gnu.org; Sat, 25 Sep 2010 15:37:27 -0700 In-Reply-To: <20100925193617.GH11011@groll.co.za> X-Nabble-From: robjsargent@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75014 Archived-At: 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.