spacemacs/contrib/lang/ruby
2014-12-09 23:09:52 -05:00
..
packages.el add basic ruby contrib layer 2014-12-09 23:09:52 -05:00
README.md add basic ruby contrib layer 2014-12-09 23:09:52 -05:00

Ruby contribution layer for Spacemacs

Description

This layer aims at providing support for the Ruby language using enh-ruby-mode and robe-mode.

Install

To use this contribution add it to your ~/.spacemacs

(defvar dotspacemacs-configuration-layers '(ruby)
  "List of contribution to load."
)

In order to take advantage of robe-mode you will probably need to install the pry gem. You can do that via your Gemfile:

 gem 'pry'

or on the command line:

$ gem install pry

Key bindings

enh-ruby-mode

SPC m i start REPL SPC m g go to definition (robe-jump) SPC m d go to Documentation SPC m R reload environment (Rails)

ruby-test-mode

ruby-test-mode comes bundled with spacemacs, but this contribution adds a couple of useful keybindings:

SPC m t f run test file SPC m t p run test at pointer