Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 127323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:27:30+00:00 2026-05-11T05:27:30+00:00

For those who haven’t used DrScheme, window is split in two parts: one part

  • 0

For those who haven’t used DrScheme, window is split in two parts: one part is a file you’re editing, and the other is interactive shell. When I run a file, it is loaded into interactive environment, so I can invoke functions I’ve defined etc. Interactive environment still has all the features of text editor (syntax highlighting, auto completion, etc…)

So is there an IDE for Ruby that doesn’t just execute script I’m making, but loads it into irb instead, with all text editor goodies?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:27:31+00:00Added an answer on May 11, 2026 at 5:27 am

    This exact request (even up to the fact that Dr Scheme motivated it) is what finally pushed me to learn Emacs.

    Here’s what i did to install it under Windows Vista:

    1. Download Emacs from http://ftp.gnu.org/gnu/windows/emacs/emacs-22.3-bin-i386.zip

    2. Unzip it to the directory of your choice

    3. After unzipping it create an includes directory anywhere you wish and copy there both ruby-mode.el and ruby-inf.el (these come with the ruby distribution under the misc directory and can also be downloaded from Ruby’s source

    4. Modify your .emacs to tell it where to find your includes and and to use them

    ; directory to put various el files into (add-to-list 'load-path 'C:/emacs-22.3/includes') ;(1)modify .emacs to use ruby-mode  (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)) ;(2)set to load inf-ruby and set inf-ruby key definition in ruby-mode.   (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) )) 

    (optional) I also installed mode-compile.el from http://perso.tls.cena.fr/boubaker/distrib/mode-compile.el and made the corresponding edits in .emacs

    ; Install mode-compile (autoload 'mode-compile 'mode-compile'    'Compile current buffer based on the major mode' t) (global-set-key 'C-cc' 'mode-compile) (autoload 'mode-compile-kill 'mode-compile'  'Kill compilation launched by `mode-compile'' t) (global-set-key 'C-ck' 'mode-compile-kill) 

    With those changes Emacs will automatically identify a .rb file as ruby and do syntax highlighting. Then with the chord \C-c\C-s (Control-c, release and then Control-s) irb will start in the box below your file, and you can use all the keys defined by inf-ruby: (\M is the Meta Key which for Windows means Alt)

      '\C-c\C-b' 'ruby-send-block   '\C-c\M-b' 'ruby-send-block-and-go   '\C-c\C-x' 'ruby-send-definition   '\C-c\M-x' 'ruby-send-definition-and-go   '\C-c\C-r' 'ruby-send-region   '\C-c\M-r' 'ruby-send-region-and-go   '\C-c\C-z' 'switch-to-ruby   '\C-c\C-l' 'ruby-load-file   '\C-c\C-s' 'run-ruby 

    If you did the optional step and installed mode-compile, you can also use \C-cc to send the current file to ruby instead of irb

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(For those who haven't heard of it, Pivotal Tracker is a simple, story-based project
For those of you who haven't been reading my Qt questoins, I am learning
For those of you who have ever used Microsoft Excel in a manner that
This question will seem obvious to those who haven't encountered the problem themselves. I
I received this code from one of those nice people here who are willing
I am trying to use a forum with my website. Those who haven't registered
For those veterans who haven't tried Hpple, it's great. It uses Xpath for searching
For those who have seen my other questions: I am making progress but I
For those who haven't worked with the Google Docs editor here's a short explanation
For those of you who have implemented Scrum in your organizations, what were your

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.