Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know about cua-mode, but I'm specifically wanting to bind C-C and C-V (the uppercase versions) to be like the terminal in Gnome. Is there any way to do this? I tried this, but it gave me all kinds of errors (apparently, it doesn't like me binding something to C-c whether the C is lowercase or not):

(global-set-key "\C-C" 'clipboard-kill-ring-save)
(global-set-key "\C-V" 'clipboard-yank)

Is there any other way to do this, or am I just going to have to use a prefix of some kind?

share|improve this question
up vote 1 down vote accepted

You can remap the whole dang keyboard if you like, recent emacs even have a menu and GUI to help you with this.

Problem is, C-C in particular is a prefix to a lot of other commands. Those would all end up needing to be attached to new key combinations. While your cut&paste habits may die hard, in the long run you may get more joy if you "submit" to Emacs' conventions rather than try to force them into line with Windows keystrokes.

share|improve this answer
It's not about sticking to windows habits. It's more about being consistent with the Linux terminal and using fewer keystrokes. But, if the answer is "there's no way to use C-C for this without remapping a lot of stuff", then I'll just use a prefix. :-) – Jason Baker Jan 7 '10 at 13:41
M-w / C-y is consisted with the "Linux terminal" (AKA readline). Which terminal uses C-c / C-v for copy/paste? I have never heard such terminal. – bos Nov 8 '15 at 21:30
AFAIK, C-C (with capital C) is not a prefix of anything at all, so you should be able to rebind it to anything you like with little conflict (if any). – Stefan May 16 at 0:11

"It's more about being consistent with the Linux terminal and using fewer keystrokes."

My Linux terminal understands C-Insert as Copy and S-Insert as Paste (kill and yank, respectively). Emacs also understands those (at least the more recent versions do), or can be easily made to understand them. In fact, most applications understand them, along with S-Delete for Cut; I usually only have trouble at Web-2.0 sites.

share|improve this answer

You can do

(global-set-key [?\C-\S-c] 'clipboard-kill-ring-save)
(global-set-key [?\C-\S-v] 'clipboard-yank)

Of course, this won't work in a text-terminal since in that case Emacs will receive the exact same byte-sequence wen you press C-c as when you press C-C.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.