This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/lang/ruby
2015-01-20 22:32:13 -05:00
..
img Move layer images into img directories 2014-12-24 01:03:49 -05:00
config.el Move configuration variables to config.el in several layers 2015-01-14 23:22:15 -05:00
packages.el Change all SPC m g bindings to SPC m g g according to conventions 2015-01-20 22:32:13 -05:00
README.md Add possible values for ruby-version-manager in ruby layer README 2015-01-11 23:13:37 -05:00

Ruby contribution layer for Spacemacs

logo

Table of Contents

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

(setq-default 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

Ruby version manager

This layer supports the use of RVM and Rbenv. To enable it, set the ruby-version-manager var in your ~/.spacemacs:

(defun dotspacemacs/init ()
  (setq-default ruby-version-manager 'rbenv)
)

Possible values are rbenv and rvm.

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 b run test file SPC m t t run test at pointer