Commit graph

55 commits

Author SHA1 Message Date
syl20bnr 89dc1af9a6 Remove spacemacs/add-to-local-vars-hook and use (format ...)
It is better to directly hook function using the conventional hook
functions.

Replace usage of (concat ...) by a (format ...) from which is more
readable.
2016-06-26 14:04:13 -04:00
d12frosted a8b0eaacec fix support of conditional config in ruby layer 2016-06-26 13:51:12 -04:00
syl20bnr 14c4b7e6c4 ruby: fix possible activation of both rspec-mode and ruby-test-mode 2016-06-06 22:55:28 -04:00
syl20bnr f1cb1f4ef9 ruby: move function spacemacs//inf-ruby-auto-center to funcs.el 2016-06-06 22:55:28 -04:00
Daniel Luna af3f053235 Automatically switch from RSpec compilation mode to interact with a debugger
This commit adds the 'inf-ruby-auto-enter method to
'compilation-filter-hook, automatically entering inf-ruby-mode when it
hits a breakpoint (see the
[inf-ruby-manual](https://github.com/nonsequitur/inf-ruby/#manual) for
more details).

The hook is added locally to the rspec-compilation-mode-hook to avoid
global slowdown, as the compilation-filter-hook is called whenever a
new line is entered.
2016-06-06 22:55:28 -04:00
syl20bnr 7506024684 ruby: apply conventions for use-package a move functions to funcs.el 2016-06-06 22:55:28 -04:00
syl20bnr 8f65b1b8be ruby: document previous commit and move function to funcs.el 2016-06-06 22:55:28 -04:00
Daniel Luna 9ca6306736 [ruby-layer] Adding ruby/rspec-verify-directory method for running specs for a
specific directory.

This commit creates a 'ruby/rspec-verify-directory command, which
prompts for a directory and runs rspec on it. This command is bound to
ruby-modes' keymaps under the "td" keybinding.
2016-06-06 22:55:28 -04:00
James Conroy-Finn 1b356ea776 Add Appraisals to ruby modes 2016-06-06 22:55:28 -04:00
syl20bnr a2de9a63af Use :toggle keyword instead of when forms 2016-05-29 22:39:21 -04:00
sooheon 15e6290151 Make check for company-mode explicit, not implicit
People may have company-mode installed without necessarily using the
auto-completion layer.
2016-05-27 00:32:05 -04:00
syl20bnr 173e2a5421 Move all prefix names from config.el to init functions 2016-04-03 00:12:28 -04:00
syl20bnr bf9f281269 ruby: use :toggle and fix location or ruby-mode 2016-03-27 15:52:43 -04:00
Adam Sokolnicki c83a553e5f Fix chruby in the ruby layer
This commit replaces the code used for finding out the ruby version to
use with `chruby-use-corresponding`.
2016-03-05 20:54:57 +01:00
Eivind Fonn 86286574a3 Move rake popwin config to post-init-popwin 2016-03-05 20:54:17 +01:00
Muneeb Shaikh 713e85bc42 ruby: add popwin config to *rake-compilation* 2016-03-05 20:52:18 +01:00
Eivind Fonn 733434718d Fixup rake config 2016-03-01 18:54:56 +01:00
Adam Sokolnicki c2ec8e57c9 Add rake package to the ruby layer 2016-03-01 18:52:33 +01:00
Adam Sokolnicki 121fb065ee Add bundle-open keybinding to the ruby layer
Also add missing information about `bundler` package to the README.
2016-02-14 23:41:06 -05:00
Adam Sokolnicki c4cf602255 Add missing keybindings to rspec-mode in ruby layer
Commands `rspec-toggle-spec-and-target` and
`rspec-toggle-spec-and-target-find-example` were missing.
2016-02-07 14:49:32 +01:00
Nate Wolfe 003b26ed83 [puppet] Use ruby-mode for Puppetfile support
The package 'puppetfile-mode' is no longer available as it's considered
redundant with ruby-mode, which should now be the mode to use for
"Puppetfile" files.
2016-02-02 21:15:26 +01:00
Eivind Fonn e29ac21345 Register all REPLs and make SPC m ' bindings 2016-01-31 23:39:25 -05:00
Eivind Fonn e9f8377b92 Tweak flycheck loading process 2016-01-31 23:04:48 -05:00
syl20bnr 64adeb66ad ruby: add comment for rspec-mode config. 2016-01-26 01:47:25 -05:00
Oleg Ivanov 1a84cc15b8 do not force rspec-mode on ruby files 2016-01-26 01:21:02 -05:00
Eivind Fonn 3271dbcf0f Move rspec popwin config to ruby layer 2016-01-23 17:08:18 +01:00
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
Eivind Fonn 0d273485ae Fix rbenv loading 2016-01-06 23:33:12 -05:00
Fabien Dubosson 92bc0049e8 Change order of arguments in (equal …) to be more explicit 2016-01-03 15:12:56 +01:00
Luke Burton 5fc1033815 Unquote ruby-version-manager variable (fix #4289) 2016-01-03 15:11:11 +01:00
Eivind Fonn ac0ba50154 Make flycheck/flyspell hooks more explicit 2015-12-11 02:08:55 -05:00
syl20bnr f20dfec4db ruby: use post-init func for smartparens config 2015-12-11 01:55:37 -05:00
Bar Magal 995a5a0f88 Fix early call to smartparens in ruby
sp-with-modes was called before smartparens was loaded, so wrap it in a
with-eval-after-load.
2015-12-11 01:49:01 -05:00
Jonathan del Strother a62da0f4ae Add ,tb binding for rspec-verify 2015-12-11 01:48:32 -05:00
Daniel Luna e9684f34a2 ruby: add rspec key bindings 2015-12-05 21:36:21 -05:00
syl20bnr 4ef8fcac78 ruby: sort packages and configuration 2015-12-05 21:08:22 -05:00
syl20bnr 9eb8f86b9a ruby: improve configuration for rbenv and rvm
Update documentation
2015-12-05 21:02:40 -05:00
syl20bnr d1ec732cd4 ruby: improve chruby configuration
Look for a .ruby-version file, if it does not exist then use the
currently activated ruby.

Update documentation.
2015-12-05 20:40:27 -05:00
Immortalin c5e260f46d ruby: chruby support 2 2015-12-05 20:01:52 -05:00
Bo Jeanes db5016d75b ruby: Add chruby support 2015-12-05 19:59:42 -05:00
syl20bnr 7e0d8f2d32 ruby: replace ruby-use-ruby-test by ruby-test-runner
Also cleanup configuration.
2015-11-27 00:28:38 -05:00
Alex Girdler cf5bc0a634 ruby: Add support for botch rspec and ruby-test
Add more keybinds and update README
2015-11-27 00:11:01 -05:00
syl20bnr ecf237af18 ruby: correct prefix command name for RuboCop 2015-11-26 23:57:33 -05:00
syl20bnr 5b99a60617 ruby: update RuboCop bindings
Make them available in both ruby-mode and enh-ruby-mode
2015-11-26 23:55:43 -05:00
Daniel Luna 3d64532047 Adding rubocop to ruby layer 2015-11-26 23:40:18 -05:00
justbur 9befd20a1a layers: Transition to new key bindings functions
Removes dependence on evil-leader centralizing control over the method
of key binding in core-keybindings.el
2015-11-21 18:22:51 +01:00
Sebastian Wiesner 9da101f1d7 Add prefixes for Ruby 2015-10-21 17:27:35 -04:00
syl20bnr 6e5924014c ruby: make the built-in ruby mode the default and...
... rename layer variable `ruby-use-built-in-ruby-mode` to
`ruby-enable-enh-ruby-mode`
2015-10-19 00:10:32 -04:00
Sebastian Wiesner 40f369ffa0 ruby: Enable built-in Ruby Mode
Enable built-in Ruby Mode, by default on Emacs 24.4 and newer where it
was significantly improved.  Otherwise keep using Enh Ruby Mode.

Add all keybindings to both modes, and provide a variable to change the
default mode.
2015-10-19 00:04:37 -04:00
Eivind Fonn 56ecd43753 Add variables to opt-in to flycheck/flyspell 2015-10-10 23:18:46 -04:00