Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two Emacs instances running, one locally and the other as an X Window running on a server I am ssh-connected to. When I try to copy+paste text between one and the other, the instance running on the server can paste to the local one by selecting text and doing Meta+W, then doing Shift+Insert on the local Emacs buffer. But the other way doesn't work: by selecting text and doing Meta+W on the local Emacs then doing Shift+Insert on the server Emacs, I get either nothing, or the contents of the clipboard from another program (e.g. the browser).

I have the same .emacs file on both, so I am not sure what's making these behave differently. How can I make the Shift+Insert pasting work from local to server Emacs?

share|improve this question
    
shit+insert, lol –  Ali May 13 '13 at 13:00
add comment

1 Answer

up vote 2 down vote accepted

It works for me. Try adding the following into .emacs on the remote machine:

(setq x-select-enable-clipboard t)
share|improve this answer
    
brilliant! Thanks! –  130490868091234 May 13 '13 at 13:23
add comment

Your Answer

 
discard

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.