[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How do I link to inferior-ruby/interpreter in emacs?

ssecorp

7/9/2008 4:23:00 PM

I have fixed ruby-mode for emacs but I dont understand how to run the
interpreter.

I have inf-ruby.el in my ruby-path but what do I need to add to
my .emacs-file?
4 Answers

Ryan Davis

7/9/2008 7:11:00 PM

0


On Jul 9, 2008, at 09:21 , ssecorp wrote:

> I have fixed ruby-mode for emacs but I dont understand how to run the
> interpreter.
>
> I have inf-ruby.el in my ruby-path but what do I need to add to
> my .emacs-file?

M-x find-library RET
inf-ruby RET

read instructions. I suggest usage #2. then:

C-c C-s ; to run irb



ssecorp

7/9/2008 11:37:00 PM

0

On Jul 9, 9:10 pm, Ryan Davis <ryand-r...@zenspider.com> wrote:
> On Jul 9, 2008, at 09:21 , ssecorp wrote:
>
> > I have fixed ruby-mode for emacs but I dont understand how to run the
> > interpreter.
>
> > I have inf-ruby.el in my ruby-path but what do I need to add to
> > my .emacs-file?
>
> M-x find-library RET
> inf-ruby RET
>
> read instructions. I suggest usage #2. then:
>
> C-c C-s ; to run irb





C-c C-s is not defined.

John Maclean

7/9/2008 11:42:00 PM

0

On Thu, 10 Jul 2008 08:36:08 +0900
ssecorp <circularfunc@gmail.com> wrote:

> On Jul 9, 9:10=C2=A0pm, Ryan Davis <ryand-r...@zenspider.com> wrote:
> > On Jul 9, 2008, at 09:21 , ssecorp wrote:
> >
> > > I have fixed ruby-mode for emacs but I dont understand how to run
> > > the interpreter.
> >
> > > I have inf-ruby.el in my ruby-path but what do I need to add to
> > > my .emacs-file?
> >
> > M-x find-library RET
> > inf-ruby RET
> >
> > read instructions. I suggest usage #2. then:
> >
> > C-c C-s ; to run irb
>=20
>=20
>=20
>=20
>=20
> C-c C-s is not defined.
>=20

Open a ruby file and see what mode you are in then C-h m and C-h b will tel=
l you the mode(s) that u have going and the keybindings for them. Ruby mode=
is very handy!

ssecorp

7/9/2008 11:50:00 PM

0

On Jul 9, 9:10 pm, Ryan Davis <ryand-r...@zenspider.com> wrote:
> On Jul 9, 2008, at 09:21 , ssecorp wrote:
>
> > I have fixed ruby-mode for emacs but I dont understand how to run the
> > interpreter.
>
> > I have inf-ruby.el in my ruby-path but what do I need to add to
> > my .emacs-file?
>
> M-x find-library RET
> inf-ruby RET
>
> read instructions. I suggest usage #2. then:
>
> C-c C-s ; to run irb

;; (autoload 'ruby-mode "ruby-mode"
;; "Mode for editing ruby source files" t)
;; (setq auto-mode-alist
;; (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
;; (setq interpreter-mode-alist (append '(("ruby" . ruby-mode))
;; interpreter-mode-alist))


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

i need to change something?