how do I install ruby-mode for emacs

4.3k Views Asked by At

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 ?

1

There are 1 best solutions below

3
Michael Kohl On

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: