Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling control-c and control-v copy and paste in Emacs

How do I copy & paste in Emacs with ctrl+c and ctrl+v? What must I add to my .emacs file?

like image 330
hookenz Avatar asked Jan 19 '10 23:01

hookenz


People also ask

What is the command for pasting in Emacs?

To paste, or yank, the text, press the keys Ctrl + y. This pastes the last killed item from the kill ring. Emacs also allows you to cycle through the kill-ring list using the command Alt + y.

How do I set keyboard shortcuts in Emacs?

Setting keybindings in all buffers You can use global-set-key interactively by calling it with M-x global-set-key . Type the keyboard shortcut you would like to set, then specify the name of the function you would like Emacs to call.

How do I select all and copy in Emacs?

Emacs menu > Options > C-x/C-c/C-v Cut and Paste (CUA). That option will let me use Shift + Arrow keys to select, Ctrl + C to copy, and ctrl + V to paste.


1 Answers

Check out the Cua Mode.

like image 106
Michał Marczyk Avatar answered Oct 14 '22 19:10

Michał Marczyk