this post was submitted on 13 Nov 2023
0 points (50.0% liked)

Emacs

311 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
 

I came across an issue using Emacs when switching to a wayland compositor (hyprland).
The fonts don't look right as you can see at the screenshot below, but zooming in makes it better.
My current emacs build is using LUCID no PGTK.
I'm thinking of building another Emacs build with PGTK support that runs natively on Wayland without Xwayland. However i'd like to install them both.
As i use Lucid version on XMonad most the time, but still when i switching to wayland i could still have a better font.

u

https://preview.redd.it/nnoue1xr470c1.png?width=685&format=png&auto=webp&s=544a2c57604eeff12de176ca12b83528e752d68e

u

top 5 comments
sorted by: hot top controversial new old
[–] Schievel1@alien.top 1 points 1 year ago (1 children)

You can build two different binaries then manage /usr/bin/emacs as a symlink to your actual binaries.

Gentoo does a similar thing with “eselect emacs”. I think eselect is written in bash so you could easily bend it to your needs

Also gnu store maybe does what you want

[–] Ybenel@alien.top 1 points 1 year ago

Yeah that's a Gentoo specific, compatibility issues. Also It only works for different versions of emacs im installing 29 version twice different features.

[–] Thaodan@alien.top 1 points 1 year ago (1 children)

You could check openSUSE or Arch Linux's packaging to see how you can achieve this.

I think the one of openSUSE is the most concrete as it will use the Wayland binary on Wayland and the X11 binary on X11 and so on.

Check out the spec file here:
https://build.opensuse.org/package/view_file/editors/emacs/emacs.spec?expand=1

The build process starts at the %build section.

[–] Ybenel@alien.top 1 points 1 year ago

I'm using arch, couldn't find anything like my case. But openSUSE build seems like a good way.

[–] 7890yuiop@alien.top 1 points 1 year ago

Is there a question here?

Are you asking about configure --prefix=... when building?