spacemacs/layers/+lang/ess
Fabien Dubosson b9cd9c1cd8 Remove rainbow-delimiters-mode from mode-specific hooks
`spacemacs` now handles `rainbow-delimiters-mode` by adding it to the
`prog-mode-hook`, if wanted by the user. Some layers are adding it on
their own mode-hook, having for effect that `rainbow-delimiters-mode` is
called twice, which disable it.

This commit remove these layer-specific definitions of
`rainbow-delimiters` as it is now handled by the `spacemacs`
distribution. It also takes care of running `prog-mode-hook` in modes
that are not derived from it.

Fixes #3902
2016-03-09 20:23:29 -05:00
..
img Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
config.el Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
packages.el Remove rainbow-delimiters-mode from mode-specific hooks 2016-03-09 20:23:29 -05:00
README.org Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -05:00

ESS (R) layer

/TakeV/spacemacs/media/commit/b9cd9c1cd82a20714baa4c02e67d8260cb3d7a27/layers/+lang/ess/img/r.jpg

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add ess to the existing dotspacemacs-configuration-layers list in this file.

Key Bindings

Inferior REPL process

Send code to inferior process with these commands:

Key Binding Description
SPC m c c send knitr/sweave chunk and keep buffer focused
SPC m c C send knitr/sweave chunk and switch to REPL in insert mode
SPC m c d send knitr/sweave chunk and step to next chunk
SPC m c m mark knitr/sweave chunk around point
SPC m c n next knitr/sweave chunk
SPC m c N previous knitr/sweave chunk
SPC m s b send buffer and keep code buffer focused
SPC m s B send buffer and switch to REPL in insert mode
SPC m s d send region or line and step (debug)
SPC m s D send function or paragraph and step (debug)
SPC m s i start an inferior REPL process
SPC m s l send line and keep code buffer focused
SPC m s L send line and switch to REPL in insert mode
SPC m s r send region and keep code buffer focused
SPC m s R send region and switch to REPL in insert mode
SPC m s t send thing at point (function) and keep code buffer focused
SPC m s T send thing at point (function) and switch to REPL in insert mode
CTRL+j next item in REPL history
CTRL+k previous item in REPL history

Helpers

Helpers for inspecting objects at point are available in R buffers only.

Key Binding Description
SPC m h d view data under point using [ess-R-data-view][ess-R-data-view]
SPC m h i object introspection popup [ess-R-object-popup][ess-R-object-popup]
SPC m h t view table using [ess-R-data-view][ess-R-data-view]

Options

ess-smart-equals is disabled by default. In order to enable it, set in your ~/.spacemacs

  (setq-default dotspacemacs-configuration-layers '((ess :variables
                                                         ess-enable-smart-equals t)))

To turn off the automatic replacement of underscores by <-, add the following hook:

  (add-hook 'ess-mode-hook
            (lambda ()
              (ess-toggle-underscore nil)))