Home » Questions » Computers [ Ask a new question ]

Is there a way to use C-C for copy and C-V for paste in emacs?

Is there a way to use C-C for copy and C-V for paste in emacs?

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):

Asked by: Guest | Views: 36
Total answers/comments: 2
Guest [Entry]

"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."
Guest [Entry]

"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."