Turbocharge your Emacs for Ruby on Rails with rinari and rails-reloaded

· Read in about 1 min · (208 Words)

Rinari is an Emacs minor mode that is aimed towards making Emacs into a top-notch Ruby and Rails development environment.

Rails reloaded is the minor mode for editing Ruby On Rails code with Emacs. This minor mode makes your work much easier and user friendly.

Lets first install rinari:

cd ~/.emacs.d/
git clone git://github.com/eschulte/rinari.git
cd rinari
git submodule init
git submodule update

( Curious about git submodules? Read here http://book.git-scm.com/5_submodules.html )

And why not do yum install emacs-rinari? Because it gives me an error:

Symbol’s value as variable is void: inflection-uncountables

Next, install rails-reloaded:

cd ~/.emacs.d/
git clone git://github.com/dima-exe/emacs-rails-reloaded.git rails-reloaded

Edit ~/.emacs file now to add these modules.

This is how how my .emacs file looks now:

;; START: Ruby / Rails setup

;; Interactively Do Things (highly recommended, but not strictly required)
(require 'ido)
(ido-mode t)

;; Rinari
(setq load-path (cons (expand-file-name "~/.emacs.d/rinari") load-path))
;; (add-to-list 'load-path "~/.emacs/rinari")
(require 'rinari)

;; rails reloaded plugin
(setq load-path (cons (expand-file-name "~/.emacs.d/emacs-rails-reloaded") load-path))
(require 'rails-autoload)

;; END: Ruby / Rails setup

Next bytecompile, press [M-x] and type rails/bytecompile.

Thats it!

Screen cast of rinari in action: http://vimeo.com/2854412

[vimeo http://www.vimeo.com/2854412 w=400&h=249]

Rinari Screencast (Ruby on Rails development with Emacs) from Eric Schulte on Vimeo.

Read the documentation for more: https://github.com/dima-exe/emacs-rails-reloaded/blob/master/README