Last active
December 8, 2025 07:17
-
-
Save shanbhardwaj/866f20e98303379ca8bfbe2f0c5b7a87 to your computer and use it in GitHub Desktop.
Build emacs on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Setting up Emacs in our source directory | |
| mkdir -p ~/src && cd ~/src | |
| git clone --depth 1 --branch emacs-30 git://git.savannah.gnu.org/emacs.git | |
| git checkout emacs-30 | |
| # Enable development libraries and update apt cache | |
| # for Ubuntu >= 24.04 | |
| sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources && apt update | |
| # for ubuntu < 24, uncomment and use the following | |
| # sudo sed -i 's/# deb-src/deb-src/' /etc/apt/sources.list && apt update | |
| # Install necessary dependencies | |
| sudo apt build-dep -y emacs \ | |
| && sudo apt install libtree-sitter-dev | |
| # Generate the configure file | |
| ./autogen.sh | |
| # Configure Emacs with desired options | |
| # --with-ctags --with-dbus --with-debug --with-mailutils --with-x11 --with-xwidgets | |
| ./configure --with-imagemagick | |
| # Compile with 4 cores | |
| make -j4 bootstrap | |
| # Verify the version | |
| ./src/emacs --version | |
| # Optionally, test things by launching Emacs without any configuration | |
| ./src/emacs -Q | |
| # When things look good, install Emacs system-wide | |
| sudo make install |
Author
The clone should be:
git clone --depth 1 --branch emacs-30 git://git.savannah.gnu.org/emacs.git
--branch requires a branch...
Author
👍🏼updated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍🏼updated