mattfidler / ess-smart-underscore.el

Smarter underscore for Emacs Speaks Statistics
13 stars 2 forks source link

+TITLE: ESS Smart Underscore

+AUTHOR: Matthew L. Fidler

To use without using a package manager:

This is in emacswiki, so this package can also be installed using el-get.

After installing el-get, Type M-x el-get-install ess-smart-underscore.

An exception to #4 is in the following situation:

+BEGIN_SRC R

a <- b |

+END_SRC

Pressing an underscore here would produce

+BEGIN_SRC R

a <- b <-

+END_SRC

However when in the following situation

+BEGIN_SRC R

a <- b|

+END_SRC

Pressing an underscore would produce

+BEGIN_SRC R

a <- b_

+END_SRC

This behavior can be toggled by =ess-S-space-underscore-is-assignment=

If the underscore key is pressed a second time, the assignment operator is removed and replaced by the underscore. =ess-S-assign=, typically " <- ", can be customized. In ESS modes other than R/S, an underscore is always inserted.

In addition the ess-smart-underscore attempts to work with noweb-mode

** Internal Variables

** Internal Functions