Setting up DooM Emacs

How I set up DooM Emacs on Arch Linux
Archlinux
Emacs
Published

October 8, 2024

I planned to use Emacs full time and rather than building emacs config from scratch ( which I have tried but felt cumbersome to work with) I thought of using DooM Emacs. Hence this post to document the steps that I take on Arch linux so that it helps others as well as myself the next time I do a fresh setup. The following guide is made for me, as well as for those who has some idea on using Vim or Vi like editors since DooM Emacs runs more or less like Vim, with the extra functionality of Emacs.

Prerequisites

This guide assumes you are runnig on Arch Linux with ripgrep and fd (optional) installed.

Setting up till getting a working Emacs

Start by installing the emacs package from the Arch repositories. Then run the following commands to download the doom emacs files:

git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install

Once done with that, open up Emacs.

For me, I found that some glyphs were not rendered properly, so install the necessary fonts by running the command M-x nerd-icons-install-fonts.

Open the init.el file in the doom config and edit whatever options that are required.

Since I am following DT’s guide, I thought the next step of installing the EviL Tutor made sense. Hence I install it by adding it to the packages.el file.

Before moving on, I would like to change the font size, so I uncommented the default font lines provided in the config.el file. But this involves installing the Fira Code and the Fira Sans fonts using Pacman in Arch. Also I changed the font size given by default (as of writing this guide, DooM Emacs is on version 24.11).

Every time a change is made in the config files in the doom config directory, make sure to quit and emacs to see the new changes.

Now you can move on, learn along the way by going through the DooM documentation (you can view it on Emacs by typing SPC h d h). Hope this helps.