WSL2 Native Emacs GUI mode with pgtk WSLg on Windows 11

Wow. I just recompiled emacs to use the new WSLg system which allows windows to run Linux GUI apps using the wayland system. I got fed up with all the artifacts present in terminal mode caused by the emacs extensions causing bad redraws like LSP server that often made the buffer practically unreadable.

Wish I had compiled this sooner. It’s so snappy . The title bar is a bit of an eyesore and waste of pixels and there may be some issues with the clipboard, but it’s still a huge improvement.

I found the relevant configure flag in this blog post on emacs redux and just changed the configure command I used in my original Native Emacs build.

--with-pgtk

Do yourself a favor an treat yourself to the buttery smooth render of GUI mode today.

1 thought on “WSL2 Native Emacs GUI mode with pgtk WSLg on Windows 11”

Leave a Comment