[Top][All Lists]

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

Re: Ruby evaluation.

From: Jonathan Groll
Subject: Re: Ruby evaluation.
Date: Sat, 25 Sep 2010 21:36:17 +0200
User-agent: Mutt/1.5.18 (Linux mail x86_64)

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))

;; 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 ()


reply via email to

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