all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-mode blows away may Ctrl-C binding with a prefix -- how to remap  prefix?
@ 2008-04-18 18:18 lindahlb
  2008-04-18 21:30 ` lindahlb
  2008-04-19  7:17 ` David Hansen
  0 siblings, 2 replies; 7+ messages in thread
From: lindahlb @ 2008-04-18 18:18 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-04-19 10:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-18 18:18 C-mode blows away may Ctrl-C binding with a prefix -- how to remap prefix? lindahlb
2008-04-18 21:30 ` lindahlb
2008-04-18 21:37   ` lindahlb
2008-04-19  7:17 ` David Hansen
2008-04-19  8:23   ` Lennart Borgman (gmail)
2008-04-19 10:36     ` Eli Zaretskii
2008-04-19 10:57       ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.