help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C-mode blows away may Ctrl-C binding with a prefix -- how to remap pref


From: lindahlb
Subject: C-mode blows away may Ctrl-C binding with a prefix -- how to remap prefix?
Date: Fri, 18 Apr 2008 11:18:20 -0700 (PDT)
User-agent: G2/1.0

Hi,

I'm currently using Windows-esque key bindings for copy (Ctrl-c), cut
(Ctrl-x) and paste (Ctrl-v). They work fine, except when I open a C/C+
+ file. In the major mode, it remaps the (Ctrl-c) key to a keymap
prefix. I want to remap this keymap prefix to another key and return
the (Ctrl-c) mapping to my own copy command. How do I do this?

I currently have a c-mode customization hook, but couldn't figure out
how to do it there. Here is what I tried:
(define-key c-mode-base-map "\C-c" 'smart-copy)

Thanks,
Brian


reply via email to

[Prev in Thread] Current Thread [Next in Thread]