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

  • Home
  • SEARCH
  • 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 7729527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:59:25+00:00 2026-06-01T05:59:25+00:00

I am using Emacs 23.4.1 on my MacBook as a ruby development environment when

  • 0

I am using Emacs 23.4.1 on my MacBook as a ruby development environment when I am on the go. Although ruby-mode works, Emacs doesn’t appear to recognize ruby specific key bindings. For example, invoking C-c C-r isn’t recognized, but manually invoking the command ruby-send-region via M-x will work.

I should note that on my Linux VM using Emacs 23.4.1, the above key binding works, and when I manually invoke the command with M-x Emacs will remind me in the minibuffer that I can instead use the aforementioned key binding. In the case of my OS X machine, do I manually need to define the key bindings in my ruby configuration file? If so, is there someone be kind enough to give me an example of how to do this?

  • 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. Editorial Team
    Editorial Team
    2026-06-01T05:59:26+00:00Added an answer on June 1, 2026 at 5:59 am

    ruby-send-region comes from inf-ruby. Which version are you running? There
    are various bastardized versions that load its keys automatically, which is
    what may be happening on Linux.

    The canonical version of this comes from Ruby source. It does not load
    keys automatically. However, the loading instructions it does provide are
    suboptimal, since key-binding code is run every time ruby-mode is activated.
    Instead use this:

    (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")
    (eval-after-load "ruby-mode" '(inf-ruby-keys))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The last few months I've been using Emacs extensively as my main development environment
I'm using emacs tramp mode to remotely edit files over ssh. The problem is
I am now using Emacs 23 with visual-line-mode turned of for text editing but
I'm using Emacs with clojure mode and slime connected to a swank server produced
I'm using emacs and auctex to write LaTeX documents. For some reason, M-e doesn't
I have started using emacs org-mode recently to maintain my TODO lists. I have
When I was using emacs with the auctex plugin, there was a mode called
I have just started using Emacs for the specific purpose of editing latex documents.
I am using emacs + slime for clojure development. Recently we got a new
I'm using emacs-calc through org-mode spreadsheet and I would like to count the number

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.