From 121fb065ee99b9aff1e7c70dddda3005c08b8b09 Mon Sep 17 00:00:00 2001 From: Adam Sokolnicki Date: Tue, 9 Feb 2016 11:34:38 +0100 Subject: [PATCH] Add bundle-open keybinding to the ruby layer Also add missing information about `bundler` package to the README. --- layers/+lang/ruby/README.org | 13 +++++++++++++ layers/+lang/ruby/packages.el | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/layers/+lang/ruby/README.org b/layers/+lang/ruby/README.org index 629377fcf..84fd28514 100644 --- a/layers/+lang/ruby/README.org +++ b/layers/+lang/ruby/README.org @@ -11,6 +11,7 @@ - [[Test runner][Test runner]] - [[Key bindings][Key bindings]] - [[Ruby (enh-ruby-mode, robe, inf-ruby, ruby-tools)][Ruby (enh-ruby-mode, robe, inf-ruby, ruby-tools)]] + - [[Bundler][Bundler]] - [[RuboCop][RuboCop]] - [[Tests][Tests]] - [[RSpec-mode][RSpec-mode]] @@ -19,6 +20,7 @@ * Description This layer provides support for the Ruby language with the following feature: - version manager (rbenv, rvm or chruby) +- integration with bundler - test runner (ruby-test and rspec) - linter (rubocop) - interactive REPL and code navigation (robe) @@ -113,6 +115,17 @@ directory local variables. | ~SPC m x :~ | Change string to symbol | | ~%~ | [[https://github.com/redguardtoo/evil-matchit][evil-matchit]] jumps between blocks | +** Bundler + +| Key binding | Description | +|-------------+--------------------| +| ~SPC b c~ | run bundle check | +| ~SPC b i~ | run bundle install | +| ~SPC b s~ | run bundle console | +| ~SPC b u~ | run bundle update | +| ~SPC b x~ | run bundle exec | +| ~SPC b o~ | run bundle open | + ** RuboCop | Key binding | Description | diff --git a/layers/+lang/ruby/packages.el b/layers/+lang/ruby/packages.el index 306e50d2e..16fd9a0e4 100644 --- a/layers/+lang/ruby/packages.el +++ b/layers/+lang/ruby/packages.el @@ -41,7 +41,8 @@ "bi" 'bundle-install "bs" 'bundle-console "bu" 'bundle-update - "bx" 'bundle-exec)))) + "bx" 'bundle-exec + "bo" 'bundle-open)))) (when (configuration-layer/layer-usedp 'auto-completion) (defun ruby/post-init-company ()