Skip to content

Instantly share code, notes, and snippets.

@zoliky
Last active April 29, 2024 09:42
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zoliky/0445b20676bfa85450d7df006066ceb7 to your computer and use it in GitHub Desktop.
Save zoliky/0445b20676bfa85450d7df006066ceb7 to your computer and use it in GitHub Desktop.
Installing Emacs 29.1 from source on Debian 12
Installation
------------
1. Install the build dependencies for Emacs:
$ sudo apt build-dep emacs
$ sudo apt install libtree-sitter-dev
2. Download and unpack the Emacs archive:
$ wget http://mirrors.nav.ro/gnu/emacs/emacs-29.1.tar.xz
$ tar xvf emacs-29.1.tar.xz
3. Install Emacs in HOME/.local/emacs/:
$ ./autogen.sh
$ ./configure --prefix="$HOME/.local/emacs/" --without-compress-install --with-native-compilation --with-json --with-mailutils --with-tree-sitter CC=gcc-12
$ make -j 4 # Replace the number 4 with the number of cores that your CPU has.
$ make install
NOTE: If you're using Wayland, you might want to consider compiling Emacs 29 with the '--with-pgtk' option as well.
Uninstallation
--------------
Change directory to the folder containing the source and perform the following steps:
$ sudo make uninstall
$ make clean
$ make distclean
@akashpal-21
Copy link

Thanks for the instructions ! Used it to compile and install 28.2 on Debian :D tree-sitter is new to Emacs 29.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment