Build Emacs 27 from source code and install Doom Emacs
git clone https://github.com/emacs-mirror/emacs.git
cd emacs
git checkout emacs-27
On Pop!_OS 20.04
Library packages needed for a plain ./configure
- texinfo
- build-dep inkscape (for gtk+)
- libxpm-dev
- libgif-dev
- gnutls-dev
- libncurses-dev
- libtinfo-dev
- libwebkit2gtk-4.0-dev
In summary, the following two commands should do
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
# sudo apt build-dep inkscape
./autogen.sh
./configure --with-xwidgets
make -j48
To make building quicker, I use make -j48
for a 16-core system. Roughly 1.5
times of the total cores available (including hyper threads).
Checkout the official page first, the installation steps may change: https://github.com/hlissner/doom-emacs
I use the following two commands:
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install
If you have private configs in different repos like me, you should also check
out that and put it under ~/.doom.d
directory.
Remember to sync the private configure to doom first by ~/.emacs.d/bin/doom sync