[ESS] disable C-c C-b

Bond, Stephen Stephen.Bond at cibc.com
Fri Nov 26 14:53:13 CET 2010


After an hour of browsing emacs docs (since nobody responded within 24 hours, I am serious about customer service :-)

I did it differently:

(put 'ess-eval-buffer 'disabled t)

Note! (put 'eval-buffer 'disabled t) will not do the job

Stephen B

-----Original Message-----
From: Martin Maechler [mailto:maechler at stat.math.ethz.ch] 
Sent: Friday, November 26, 2010 3:05 AM
To: Bond, Stephen
Cc: ess-help at stat.math.ethz.ch
Subject: Re: [ESS] disable C-c C-b

>>>>> "BS" == Bond, Stephen <Stephen.Bond at cibc.com>
>>>>>     on Tue, 16 Nov 2010 16:51:05 -0500 writes:

    BS> Please, advise how to disable C-c C-b, which I sometimes hit accidentally instead of C-n and it does bad things as I keep a lot of code in a single file.
    BS> Thanks everybody.

The following, put into your ~/.emacs  file 
should work :

(add-hook 'ess-mode-hook
	  '(lambda ()
	     (define-key ess-mode-map "\C-c\C-b" nil))); instead of  'ess-eval-buffer

Regards,

Martin Maechler, ETH Zurich



More information about the ESS-help mailing list