I know that question has been asked dozens of times now, but i have tried every possible suggestion i have found online - nothing worked.

I can't figure out how can I copy/paste from my Windows 10 to emacs(which is run through "Bash on Ubuntu on Windows"). If i copy text on my Windows i cant paste it to emacs by clicking right button of my mouse. I have tried pasting by using Shift+Insert, but it keeps toggling "overwrite mode" and not pasting anything. I have tried unbinding overwrite mode but i couldnt achieve it.

I have also tried simpleclip package and it shows me "Clipboard support not available" whenever I try running "M+x simpleclip-copy/paste/cut".

Can anyone please help me?

  • You are probably after the key binding C-y, which is the yank command to insert from the kill-ring in emacs. – theldoria Mar 3 '18 at 11:02
  • If you would like to have a more windows like key binding, you can try adding (cua-mode 1) to your init.el. – theldoria Mar 3 '18 at 11:04
  • I am aware of C-y, which is the 'yank' from emacs clipboard. But i want to paste from my Windows 10 OS clipboard. Killing and yank within emacs works fine. But i need to bind keyboard to paste from Windows 10 OS clipboard to emacs(replication mouse-2 click) – Ilja Leiko Mar 3 '18 at 11:22
  • You need something on the Windows side which serves the x-clipboard. I have some experience with the Cygwin XWin server and the XMing server which is more lightweight. Both servers have a bridge from the windows clipboard to the x-clipboard. For the XWin server you need the command line option -clipboard. You can switch on clipboard integration of XMing by some entry in the application menu (it is easy). If you manage to get clipboard support working in the X-server you get it for free in emacs (in my experience). – Tobias Mar 3 '18 at 11:51
  • ... Note, if you want to use the X-server you need export DISPLAY=:0.0 in wbash. From my experience do not waste time on the terminal version of emacs but aim for the X11 version. I don't have much experience with the terminal version but there are again and again problem reports with that version here on emacs.stackexchange.com. If the last two comments really pin-point your problem I re-write them as an answer. But, at first I will wait and see if it is really a solution. – Tobias Mar 3 '18 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.