Suhail Gupta
Suhail Gupta

Reputation: 23226

how do I install ruby-mode for emacs

I have just installed emacs for fedora.I want to use emacs to write ruby. What are the tools,extensions needed that provide me code hinting,code completion type features for ruby ?

Upvotes: 5

Views: 4331

Answers (1)

Michael Kohl
Michael Kohl

Reputation: 66837

ruby-mode is already included from Emacs 23 onwards. It's also available via ELPA though. Some other things you might be interested in are integrating RVM, feature-mode (Cucumber), rspec-mode, ruby-electric, inf-ruby, rinari (for Rails) etc. Here's my current Emacs configuration for Ruby development:

https://github.com/citizen428/emacs.d/blob/master/config/ruby-conf.el

I also wrote a blog post on this topic once, it's a bit outdated and my config has changed since then, but it's better documented and maybe helps you in getting started:

http://www.citizen428.net/blog/2010/07/06/emacs-for-rubyists

If you use yasnippet you can find Ruby completions here: https://github.com/bmaland/yasnippet-ruby-mode

If you are completely new to Emacs, you might want to start out with Emacs Prelude or the Starter Kit:

Upvotes: 8

Related Questions