Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 708
Suhail Gupta Avatar asked Jun 07 '12 11:06

Suhail Gupta


1 Answers

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:

  • Emacs Prelude
  • emacs-starter-kit
like image 58
Michael Kohl Avatar answered Oct 12 '22 04:10

Michael Kohl