hubisan / emacs-wsl

Install and run Emacs with the Windows Subsystem for Linux (WSL 2) in Windows 10 or 11.
572 stars 42 forks source link

Add instructions for Cygwin/X (alternative to Vcxsrv) as X Server #10

Closed hubisan closed 4 years ago

hubisan commented 4 years ago

From https://github.com/hubisan/emacs-wsl/issues/3#issuecomment-626289977.

The shortcut on the desktop needs to be like this:

C:\cygwin\bin\run.exe --quote /usr/bin/bash.exe -l -c "XWin :0 -listen tcp -retro -lesspointer -multiwindow -clipboard -wgl"

WSL2 needs the -ac flag to disable access control. See WSL2 issue or this with cygwin/x https://gojimmypi.blogspot.com/2019/01/wsl-gui-using-cygwin-x-server-for.html