UP | HOME

BuildingEmacs

Highlights / Notes

Note: the article builds Emacs with tree-sitter, which isn't really necessary for what I was looking for.

  1. Install the requesite dependencies:

sudo apt install git autoconf make texinfo gnutls-bin libgccjit-12-dev \
    gcc libgtk2.0-dev libgnutls28-dev libxpm-dev libgif-dev \
    libncurses-dev libsqlite3-dev libmagickwand-dev \
    ag python3-pydot

  1. Optional: clone and install tree-sitter (standard make && make install).

git clone https://github.com/tree-sitter/tree-sitter.git
cd tree-sitter/
make
sudo make install
sudo ldconfig

  1. Clone and build emacs. You may have to install some additional dependencies. If you want tree-sitter, make sure to add --with-tree-sitter.

git clone -b master git://git.sv.gnu.org/emacs.git
cd emacs
./autogen.sh
./configure --with-native-compilation --with-mailutils --with-imagemagick
make
sudo make install