Commit graph

71 commits

Author SHA1 Message Date
d12frosted
e15fb35bd8 add docs for ruby minitest mode 2016-10-14 12:20:26 +03:00
Pawan Dubey
f592beda02
Add Minitest support to Ruby Layer
Added support for Minitest to the Ruby layer with the
minitest-mode package. Defined appropriate keybindings.

Fixes syl20bnr/spacemacs#6969
2016-10-11 22:18:22 +03:00
syl20bnr
9066d073b2 Fix (void-variable spacemacs-jump-handlers-....)
Move the variable definitions to config.el and eval-after-load the
key binding on SPC m g g.
2016-09-04 22:31:47 -04:00
Eivind Fonn
5a869764dd Further improve gtags layer
- Add option to disable by default
- Use local-vars hook to allow per-project enable/disable
- Don’t enable helm-gtags-mode (no need)
- Move emacs bindings from helm-gtags-mode-map to ggtags-mode-map
2016-08-22 15:11:25 +02:00
Eivind Fonn
928983da47 Refactor jump to definition
This commit defines:

- spacemacs-default-jump-handlers: a list of functions that can jump to
  definition in ALL modes.

- spacemacs-jump-handlers-MODE: a list of functions that can jump to
  definition in MODE.

- spacemacs-jump-handlers: a buffer-local list of functions that can
  jump to definition. This is made up of the values of the two previous
  variables whenever a given major mode is activated.

- spacemacs/jump-to-definition: a function that tries each function in
  spacemacs-jump-handlers in order, and stops when one of them takes us
  somewhere new.

- spacemacs|define-jump-handlers: a macro that
  * defines spacemacs-jump-handlers-MODE, possibly filled with initial
    functions
  * defines a function that is added to the hook of the given MODE
  * binds “SPC m g g” of that MODE to spacemacs/jump-to-definition

This is an attempt to harmonize all the different approaches to jumping.
Specifically,

- Existing intelligent jump packages that work for only a single mode
  should go to the beginning of spacemacs-jump-handlers-MODE. E.g.
  anaconda for python, ensime for scala, etc.

- Packages like gtags that work for several modes (but potentially not
  all) and which is dumber than the intelligent jumpers should go the
  the END of spacemacs-jump-handlers-MODE.

- Packages like dumb-jump that work for all modes should go to
  spacemacs-default-jump-handlers.

In all cases the order of the jump handlers in each list should be from
most to least intelligent.

Fixes #6619
2016-08-22 15:08:25 +02:00
Christian E. Hopps
b22702bc9e Expand gtags use to many more languages 2016-07-17 17:31:59 +02:00
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
3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -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
Johan K. Jensen
be2c471397 Fix inline code blocks
Add zero-width space because emphasis blocks can't start/end with
a comma, an apostrophe or a quote.
2016-03-01 18:51:13 +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
syl20bnr
cddf18ff1e Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -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
f1ee2c7333 ruby: update doc 2015-12-05 21:19:18 -05:00
syl20bnr
c8ac0c08a9 ruby: remove unused variable ruby-use-ruby-test 2015-12-05 21:08:45 -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