Skip to content

Instantly share code, notes, and snippets.

@rscircus
Last active June 17, 2024 07:35
Show Gist options
  • Save rscircus/77e91b36de1e431e0310611a32786e3c to your computer and use it in GitHub Desktop.
Save rscircus/77e91b36de1e431e0310611a32786e3c to your computer and use it in GitHub Desktop.
Install Emacs on Pop!_OS 20.04

Emacs 27 on Pop!_OS

Install Emacs using flatpak

  • Install via Pop!_shop

Add the following to `/usr/local/bin/emacs`:

#!/usr/bin/env bash
/usr/bin/flatpak run org.gnu.emacs "$@"

and make it executable:

sudo chmod +x /usr/local/bin/emacs

Install Emacs via source

Checkout sourcecode

git clone https://github.com/emacs-mirror/emacs.git
cd emacs
git checkout emacs-27

Install dependency packages

On Pop!_OS 20.04

sudo apt install autoconf texinfo libxpm-dev libgif-dev gnutls-dev libncurses-dev libtinfo-dev libtiff-dev libjpeg-dev libgtk-3-dev libwebkit2gtk-4.0-dev

Configure and Build

./autogen.sh
./configure --with-xwidgets
make -j48 #16 core machine + 4threads each

Install

sudo make install

Uninstall

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