[ESS] S-Enter to send line to R, not C-Enter. Please?
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)
>> 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
> Terminal application
> Local shell
> Remote shell
> 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.
> On Tue, May 14, 2013 at 8:17 PM, Steve Lianoglou
> <lianoglou.steve at gene.com>wrote:
>> On Tue, May 14, 2013 at 8:49 AM, Paul Johnson <pauljohn32 at gmail.com>
>> > 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,
>> > C-Enter?
>> > In cua mode, C-Enter is bound to their very handy rectangle selection
>> > 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
>> > (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
>> > 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
>> > 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 Lianoglou
>> Computational Biologist
>> Department of Bioinformatics and Computational Biology
>> ESS-help at r-project.org mailing list
> [[alternative HTML version deleted]]
> ESS-help at r-project.org mailing list
More information about the ESS-help