[ESS] S-Enter to send line to R, not C-Enter. Please?
Vitalie Spinu
spinuvit at gmail.com
Wed May 15 11:04:20 CEST 2013
That key was chosen because it does the same thing in R-studio.
You can reset it of course:
(define-key ess-mode-map [(control return)] nil)
(define-key ess-mode-map [(shift return)] 'ess-eval-region-or-line-and-step)
Vitalie
>> Kasper Daniel Hansen <kasperdanielhansen at gmail.com>
>> on Tue, 14 May 2013 21:02:46 -0400 wrote:
> This depends entirely on how your terminal is set up. Specifically, if you
> are running Emacs under ssh in a terminal application, any keypress has to
> go through
> OS
> Terminal application
> Local shell
> (SSH)
> Remote shell
> Emacs
> It can be intercepted or not translated at any time, but you can usually
> also make it work given enough time on your hands. At least, I don't see
> why you should not be able to make it work, as long as the OS received a
> specific code when you press the key.
> Kasper
> On Tue, May 14, 2013 at 8:17 PM, Steve Lianoglou
> <lianoglou.steve at gene.com>wrote:
>> Hi,
>>
>> On Tue, May 14, 2013 at 8:49 AM, Paul Johnson <pauljohn32 at gmail.com>
>> wrote:
>> > Good morning.
>> >
>> > This is my "random ESS question" day.
>> >
>> > Am I the only one who wishes that send to R would be bound to S-Enter,
>> not
>> > C-Enter?
>> >
>> > In cua mode, C-Enter is bound to their very handy rectangle selection
>> tool.
>> >
>> > For that reason, my .emacs has S-Enter set as the "send line to R buffer"
>> > functionality. Could you make it possible for me to assign that within
>> ESS
>> > (Rather than scripting up my own recipe, which I have been doing for 10
>> > years).
>> >
>> > This is not an entirely new thing, I did not invent it. In the olden
>> days
>> > of Emacs for Windows, at the turn of the century, Shift-Enter was pre-set
>> > by the packager, and I liked it. Memory tells me the packager was C.
>> > Curly. We had that setting in the first RPM packages for ESS, in Fedora
>> 6
>> > or such.
>>
>> I'm pretty sure S-Enter doesn't work when running emacs via terminal,
>> and would (then) likely be a poor choice for a default binding, no?
>>
>> -steve
>>
>> --
>> Steve Lianoglou
>> Computational Biologist
>> Department of Bioinformatics and Computational Biology
>> Genentech
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help>
> [[alternative HTML version deleted]]
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list