[ESS] Assign f12 to "ess-sas-submit-region"
Main, Regan
rmain at rand.org
Mon Mar 21 18:16:35 CET 2011
Thank you for your quick response, Rodney. I did check out the Function
keys for batch processing section and concluded that it wasn't working
either because it is specific to batch processing and/or because I was
not adding the lines of code to the correct places.
I tried uncommenting line 4 in the batch processing instructions. When
I would hit F3, it would batch submit the file. I tried adding the "b."
instructions first in the ess-site.el file (which crashed it) and then
intead to my .emacs file. I also tried with and without adding the
global-unset/set-key commands in my .emacs, but so far, I haven't
managed to change or make an additional keybinding to interactively
submit (C-c C-r) chunks of code.
Can you recommend anything else to try?
Thank you,
-Regan
-----Original Message-----
From: ess-help-bounces at r-project.org
[mailto:ess-help-bounces at r-project.org] On Behalf Of Rodney Sparapani
Sent: Monday, March 21, 2011 12:40 PM
To: ess-help at stat.math.ethz.ch
Subject: Re: [ESS] Assign f12 to "ess-sas-submit-region"
On 03/21/11 09:45 AM, Main, Regan wrote:
> Hi all--
>
> I use iESS for generating and debugging SAS code primarily, but also
> Stata and R. I prefer to submit code by marking the region and
> submitting with C-c C-r and have been doing so for a couple of years.
> I'm starting to run into some carpal tunnel issues though and would
like
> to change the burden of submitting chunks of code from my left hand to
> my right. I've been playing around with my .emacs but not meeting
with
> much success.
>
> Can someone please help me assign the f12 key to what the C-c C-r
> keybinding currently does? Below is my best attempt so far. I found
> the "defcustom" lines online and inserted them between a
> global-unset-key and global-set-key.
>
> Thanks much for any assistance you can offer.
> -Regan Main
> RAND Corporation
>
>
> (global-unset-key [f12])
>
> ;; Bind f12 to ess-sas-submit-region
> (defcustom ess-sas-temp-root "-temp"
> "*Appended to root name of the temporary .sas file for
> `ess-sas-submit-region'."
> :group 'ess-sas
> :type 'string)
>
> (global-set-key [f12] 'ess-sas-submit-region)
Hi Regan:
I don't know what the defcustom bit is all about, but the f12 definition
looks correct to me. Did you read
http://ess.r-project.org/Manual/ess.html#ESS_0028SAS_0029_002d_002dFunct
ion-keys-for-batch-processing
If so, which of the 4 layouts did you pick? If 4 or 5, then what you
want is C-F3 or C-F8 respectively. If that is not working, then try
what's under b.; either
(ess-sas-global-unix-keys) ; C-F3
or
(ess-sas-global-pc-keys) ; C-F8
Rodney
______________________________________________
ESS-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
__________________________________________________________________________
This email message is for the sole use of the intended r...{{dropped:6}}
More information about the ESS-help
mailing list