[ESS] modifying key bindings

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Mon Apr 19 13:50:30 CEST 2010


Jeff G. <jgaroftheeast at gmail.com> wrote:

> Hi all,
> 
> I apologize if this is really basic, but I would really, really like
> to get rid of the key binding C-c C-b which corresponds to
> ess-eval-buffer.  I keep hitting it by accident when trying to type
> C-c C-n.   With longer buffers, this can be a serious pain.
> 
> After extensive Google searching, I took a shot in the dark and added
> the line (global-unset-key (kbd "C-c C-b")) to my Preferences.el file.
>  No dice.

This works for me (you need to do it for the local major mode, rather
than globally.)

Stephen

(defun my-unbind-ess-hook ()
  (local-unset-key (kbd "C-c C-b")))

(add-hook 'ess-mode-hook 'my-unbind-ess-hook)



More information about the ESS-help mailing list