[ESS] ESS Editing Mode
Tyler Smith
tyler.smith at eku.edu
Thu Jan 14 04:11:17 CET 2010
David Neu <david at davidneu.com> writes:
> 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.
>
You can accomplish this with a hook:
(defun my-ess-mode-hook ()
(local-set-key "\C-c\C-c" 'do-something-helpful)
(local-set-key "\C-c\C-d" 'do-something-clever))
(add-hook 'ess-mode-hook 'my-ess-mode-hook)
Placing the above code in your .emacs file will cause the ess-mode
keybindings for C-c C-c and C-c C-d to be replaced by the named
functions.
You'll need to pick real functions of course, and it won't take effect
until your .emacs is next evaluated, normally at start-up unless you
explicitly evaluate it yourself. But you can easily extend it to include
as many different key-bindings as you like. This will only have effect
in the buffer that is visiting a .R (or .S file).
HTH,
Tyler
More information about the ESS-help
mailing list