Unable to copy text into Emacs and paste into another application

I am running GNU Linux and GNU Emacs 23.4.2

When I copy text to Emacs (using Mw or in CUA Cc mode) and then type Cv into another application to try to paste the copied text, it does not work - the text from Emacs is not pasted.

However, when I copy text instead using the Emacs menu (Edit-> Copy), this works - I can successfully paste the copied text into another application using Cv .

How can I fix this, so copying with the keys works the same way as copying through the menu?

+7
source share
3 answers

Read manual , section 25.1.5 Using the clipboard :

You can set the x-select-enable-clipboard variable so that yank Emacs functions look at the clipboard before the initial selection and so that the kill functions are saved to the clipboard, as well as the main choice. Otherwise, these commands do not have access to the buffer at all.

You may also need to read section 25.1.3 Cut and Paste with Other Window Applications .

+7
source

Put this in your .emacs (setq x-select-enable-clipboard t)

+2
source

Just try

 (cua-mode t) 

instead.

See also here: http://www.emacswiki.org/emacs/CuaMode

0
source

All Articles