Re: Key bindings
>>>>> On Tue, 20 Mar 2001 13:52:45 -0500, Alan Shutko <ats@acm.org> said:
Alan> Camm Maguire <camm@enhanced.com> writes:
>> Greetings! I maintain cxref, which does not provide an emacs
>> minor mode, but does have an .el file with useful C editing
>> functions bound by default to C-c ? key combinations. A bug was
>> filed, saying that C-c was reserved for the user.
Alan> By my reading of the docs, the bug was incorrect.
The bug was titled "shouldn't mess with keymap in the C-c [a-zA-Z]
arena" which cxref did.
(defun cxref-c-mode-common-hook () "Set up the key bindings for cxref in cc-mode"
- (define-key c-mode-map "\C-c\C-f" 'cxref-file-comment) ;; Control-C Control-F
- (define-key c-mode-map "\C-cf" 'cxref-function-comment) ;; Control-C f
- (define-key c-mode-map "\C-cv" 'cxref-variable-comment) ;; Control-C v
- (define-key c-mode-map "\C-ce" 'cxref-endline-comment) ;; Control-C e
- (define-key c-mode-map "\C-ci" 'cxref-inline-comment) ;; Control-C i
+ (define-key c-mode-map "\C-x\C-c\C-f" 'cxref-file-comment) ;; Control-C Control-F
+ (define-key c-mode-map "\C-x\C-cf" 'cxref-function-comment) ;; Control-C f
+ (define-key c-mode-map "\C-x\C-cv" 'cxref-variable-comment) ;; Control-C v
+ (define-key c-mode-map "\C-x\C-ce" 'cxref-endline-comment) ;; Control-C e
+ (define-key c-mode-map "\C-x\C-ci" 'cxref-inline-comment) ;; Control-C i
)
Here's the patch from the debian package changing it.
And before you jump off to take over the C-c C-c arena don't do it.
C-c C-x seems pretty untaken on my system at the moment.
Jim
--
@James LewisMoss <dres@debian.org> | Blessed Be!
@ http://jimdres.home.mindspring.com | Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach
Reply to: