Home News Notes About

Compiling Emacs

A little personal reminder on how I usually compile Emacs… After cloning and cd'ing in the source directory:

./autogen.sh
./configure --without-compress-install --with-native-compilation=aot --with-json --with-mailutils --with-tree-sitter --with-gif --with-png --with-jpeg --with-rsvg --with-tiff --with-imagemagick

Some of these flags are a bit arbitrary, I should look into this.

make -j $(nproc)

…and that's it! Of course many packages will probably miss, but I'll add them on this page the next time I compile Emacs from a fresh system.

I usually create a symbolic link in a directory on my path:

ln -s ~/src/emacs/src/emacs emacs