emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
bartuka 2020-12-01T14:00:08.203200Z

hi, I am trying emacs on wsl2, how can I integrate both clipboards? would like to M-w something and C-v on windows apps

genmeblog 2020-12-01T14:06:01.204500Z

Use XServer for that. You can use X410 (paid) or XOrg free server from Cygwin (for example). Cygwin X should be run with the following arguments: Xwin :0 -multiwindow -ac +iglx -wgl -clipboard -listen tcp

genmeblog 2020-12-01T14:07:22.205300Z

Clipboard is passed both ways, ie win->wsl and wsl->win

bartuka 2020-12-01T14:08:41.205700Z

I am using X410 and the option to share clipboard is enabled.

bartuka 2020-12-01T14:08:53.206Z

idk if I need to do something on the ubuntu side (or emacs)

bartuka 2020-12-01T14:11:54.206900Z

uhm.. I restarted the X410 and emacs and now M-w is hanging 😕

genmeblog 2020-12-01T14:13:56.207600Z

Oh, strange... it works for me well.

bartuka 2020-12-01T14:14:38.207900Z

even using emacs -Q does not work

genmeblog 2020-12-01T14:16:03.208400Z

maybe Windows firewall is blocking something?

bartuka 2020-12-01T14:23:36.208800Z

idk, I'm new to windows .. still trying to figure out how to debug this

genmeblog 2020-12-01T14:26:26.209600Z

I don't know how to do this 😕

genmeblog 2020-12-01T14:28:17.210100Z

Just a random reddit post from the past (3y ago): I use Emacs (25.3) with VcXsrv (X Server for Windows) and clipboard sharing works like a charm (but only after latest Creator Update for Windows 10, earlier you had to patch sources of Emacs to prevent it from hanging). (here: https://www.reddit.com/r/bashonubuntuonwindows/comments/6xx3k5/emacs_functions_for_the_windows_clipboard/)

genmeblog 2020-12-01T14:28:58.210600Z

So maybe you haven't updated Windows to the newest one?

bartuka 2020-12-01T14:33:08.211200Z

uhm.. there are a couple of updates pending here. let me try. thanks

genmeblog 2020-12-01T14:34:14.212100Z

the bigger updates should be initiated manually by you, they are not automatic anymore.

🚀 1
bartuka 2020-12-01T14:40:15.212300Z

got it!

bartuka 2020-12-01T14:58:29.212800Z

@tsulej it worked! thanks for the help

bartuka 2020-12-01T14:59:34.213600Z

I am being so brave and not cursing windows too much bc of every annoyance. I'll give myself a cookie now =)

genmeblog 2020-12-01T16:08:46.214200Z

that's great! cookie is obligatory now 🙂