<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2023-06-29</id>
	<title>Blog: 2023-06-29 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2023-06-29"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2023-06-29&amp;action=history"/>
	<updated>2026-04-06T23:13:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Blog:_2023-06-29&amp;diff=602&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;Ok I got emacs compiled  learned about pkg-config, use this to get the flags for c compiler:  &lt;pre&gt; gtk-learn $ cat Makefile all: hello-world-gtk  hello-world-gtk: hello-world...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2023-06-29&amp;diff=602&amp;oldid=prev"/>
		<updated>2023-06-29T04:04:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Ok I got emacs compiled  learned about pkg-config, use this to get the flags for c compiler:  &amp;lt;pre&amp;gt; gtk-learn $ cat Makefile all: hello-world-gtk  hello-world-gtk: hello-world...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Ok I got emacs compiled&lt;br /&gt;
&lt;br /&gt;
learned about pkg-config, use this to get the flags for c compiler:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
gtk-learn $ cat Makefile&lt;br /&gt;
all: hello-world-gtk&lt;br /&gt;
&lt;br /&gt;
hello-world-gtk: hello-world-gtk.c&lt;br /&gt;
	$(CC) `pkg-config --cflags gtk4` -o hello-world-gtk hello-world-gtk.c -Wall -pedantic `pkg-config --libs gtk4`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also made a gtk 4 hello-world window, which was pretty hard but fun. Apparently emacs uses gtk 3 for wayland. There&amp;#039;s a good writeup on the emacs/wayland situation in the answer here: https://emacs.stackexchange.com/questions/48561/is-there-an-x11-free-build-of-emacs-that-can-run-on-wayland-not-going-through-x&lt;br /&gt;
&lt;br /&gt;
Compiling emacs was a bit of a hassle, but this post had the specifics: https://oylenshpeegul.gitlab.io/blog/posts/20230206/&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s my final &amp;lt;code&amp;gt;configure&amp;lt;/code&amp;gt; command:&lt;br /&gt;
&lt;br /&gt;
 ./configure --with-json --with-native-compilation --with-pgtk --without-x&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But I guess I have emacs _30_ running wayland, and it uses eglot for lsp quite easily. Just had to install the python-lsp-server pip package, with extras:&lt;br /&gt;
&lt;br /&gt;
 pipx install python-lsp-server[all]&lt;br /&gt;
&lt;br /&gt;
And emacs is already starting to look like a development environment, right out of the box, without even any external packages. Nice.&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>