You are viewing a single thread.
View all comments
1 point

You can try emacs-pgtk package, cause WSLg relies on Wayland

permalink
report
reply
1 point

Yep that’s what finally caused me to switch to using Emacs on WSL2 (instead of the Windows build). Then you can also get rid of that ugly white border from WSLg.

permalink
report
parent
reply
1 point

any details on that white border stuff? pgtk didnt autofix it for me in the past and id love to not have it searing my eyes

permalink
report
parent
reply
1 point

that sometimes happens when wslg has issues with bind mounting the runtime dir from the system distro or runtime dir permissions, were you by chance using it with a uid != 1000?

permalink
report
parent
reply
1 point

Not sure if there’s something else missing in your setup. I’m using WSL2 (Ubuntu), and in my case all I had to do was compile Emacs passing the --with-pgtk flag, then:

sudo apt install gnome-tweaks yaru-theme-gtk yaru-theme-icons

And ran gnome-tweaks in the terminal, and changed the application and icon themes to Yaru-dark.

permalink
report
parent
reply
1 point

I downloaded the source code for emacs and compiling it locally with the --with-pgtk flag. (And --with-native-compilation for better performance)

That made my life improve a lot.

permalink
report
parent
reply
1 point

takes notes

permalink
report
parent
reply
1 point

You can also install pgtk emacs directly from snaps when under Ubuntu in wsl, if you prefer.

permalink
report
parent
reply
1 point

I get a warning when compiling emacs from source with the pgtk flag telling me about a known bug in my version of gtk that causes problems when opening and closing multiple emacs instances. Do you know anything about this? In particular would it be resolved by switching to the snap?

permalink
report
parent
reply

Emacs

!emacs@communick.news

Create post

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for “emacs” and “vi” link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

Community stats

  • 18

    Monthly active users

  • 562

    Posts

  • 2.4K

    Comments