this post was submitted on 23 Nov 2023
3 points (100.0% liked)

Emacs

310 readers
1 users here now

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

Get Emacs

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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] harunokashiwa@alien.top 1 points 10 months ago (9 children)

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

[–] Massive-Squirrel-255@alien.top 1 points 10 months ago (4 children)

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.

[–] glgmacs@alien.top 1 points 10 months ago (1 children)

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

[–] Massive-Squirrel-255@alien.top 1 points 10 months ago (1 children)

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?

[–] glgmacs@alien.top 1 points 10 months ago

I have no idea about that compilation issue you get. Since the emacs snaps (pgtk and x) are pre built binaries, you wont get that problem. Ive been using Emacs PGTK from snaps on WSLg for a year without any issue.

load more comments (2 replies)
load more comments (6 replies)