[ESS] ESS Editing Mode

David Neu david at davidneu.com
Thu Jan 14 18:34:20 CET 2010


On Thu, Jan 14, 2010 at 10:31 AM, Kasper Daniel Hansen
<khansen at stat.berkeley.edu> wrote:
> On Jan 14, 2010, at 9:50 AM, Rodney Sparapani wrote:
>
>> On 01/13/10 05:21 PM, David Neu wrote:
>>> Hi Stephen,
>>>
>>> Thanks for the response.
>>>
>>>> what advantage would you see to not loading ess inferior code? Speed up
>>>> in load time?
>>> I'm not currently using the ess inferior mode, but am using the
>>> editing mode, and I'd like to use the key sequences related ess
>>> inferior mode for other things.
>
> I don't get this, why don't you just overwrite the keys, something like
>
> (add-hook 'inferior-ess-mode-hook
>          (lambda ()
>            (define-key inferior-ess-mode-map [(hyper n)] 'comint-next-input)
>            (define-key inferior-ess-mode-map [(hyper p)] 'comint-previous-input)
>            (define-key inferior-ess-mode-map "\C-a"
>              (lambda ()
>                (interactive)
>                (comint-show-maximum-output)
>                (goto-char (comint-line-beginning-position))))
>            ))
>
> Kasper
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

Hi Kasper,

Actually, since I'm not using the inferior-ess-mode, I need to use
define-key-ess-mode-map rather than define-key inferior-ess-mode-map
to change or disable the ESS binding while editing *.R files.  Aside
from that what you
suggest will work; I was just seeing if the editing functionality
could be loaded separately.

Cheers,
David



More information about the ESS-help mailing list