[ESS] setwd shortcut

baptiste auguie bapt4510 at googlemail.com
Sun Jul 4 12:26:20 CEST 2010


Awesome!

Thanks a lot,

baptiste

On Sun, Jul 4, 2010 at 5:01 AM, Charles C. Berry <cberry at tajo.ucsd.edu> wrote:
> On Sat, 3 Jul 2010, baptiste auguie wrote:
>
>> On Sat, Jul 3, 2010 at 9:43 PM, Charles C. Berry <cberry at tajo.ucsd.edu>
>> wrote:
>> [...]
>>>
>>> Save a keyboard macro?
>>>
>>> (setq last-kbd-macro
>>>   [?\C-  ?\C-u ?\M-| ?p ?w ?d return ?\C-p ?s ?e ?t ?w ?d ?\( ?\" ?\C-e
>>> ?\"
>>> ?\)])
>>
>>
>> Sounds good, but how do I call it? (I placed the definition in
>> ~/.emacs but now what?)
>
> Try this:
>
>
> (fset 'my-setwd-macro
>   [?\C-  ?\C-u ?\M-| ?p ?w ?d return ?\C-p ?s ?e ?t ?w ?d ?\( ?\" ?\C-e ?\"
> ?\)])
>
> (add-hook
>  'ess-mode-hook
>  '(lambda()
>    (define-key ess-mode-map "\C-c\C-s" 'my-setwd-macro)))
>
> Now in test.R try typing C-c C-s
>
> Chuck
>
>>
>> Thanks,
>>
>> baptiste
>>
>>
>>>
>>> HTH,
>>>
>>> Chuck
>>>
>>>>
>>>> Regards,
>>>>
>>>> baptiste
>>>>
>>>> ______________________________________________
>>>> ESS-help at stat.math.ethz.ch mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>>>
>>>
>>> Charles C. Berry                            (858) 534-2098
>>>                                            Dept of Family/Preventive
>>> Medicine
>>> E mailto:cberry at tajo.ucsd.edu               UC San Diego
>>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego
>>> 92093-0901
>>>
>>>
>>>
>>
>
> Charles C. Berry                            (858) 534-2098
>                                            Dept of Family/Preventive
> Medicine
> E mailto:cberry at tajo.ucsd.edu               UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
>



More information about the ESS-help mailing list