[ESS] underscore mapped to <-
Brian Diggs
diggsb at ohsu.edu
Fri Nov 5 00:50:15 CET 2010
On 11/4/2010 4:35 PM, Marc Schwartz wrote:
> On Nov 4, 2010, at 6:28 PM, claudia tebaldi wrote:
>
>> Dear all
>>
>> one of the R packages I use frequently has just been updated to a
>> version where many of the function names now contain the underscore
>> character. Every time I try to use one, ESS changes the underscore
>> into the assignment sign<-, which up until now I though was cool
>> (being an old user of R I often type the underscore for assignment
>> purposes). I'm not sure how to change the mapping of _ to <- or
>> otherwise get around this feature and be able to use those
>> functions.
>>
>> Thank you for your help!
>>
>> Claudia
>
> Claudia,
>
> Just hit the underscore key twice in succession and you will get the
> underscore character, rather than the assignment operator.
Another approach is the ess-toggle-underscore function. You can run it
per-buffer, or put
(ess-toggle-underscore nil)
in your init.el file to turn this off globally (which is the approach
I've taken).
> HTH,
>
> Marc Schwartz
--
Brian S. Diggs, PhD
Senior Research Associate, Department of Surgery
Oregon Health & Science University
More information about the ESS-help
mailing list