May 26, 2021
This is my guide for getting started with Doom Emacs as a complete noob.
I know there are a ton of videos on YouTube and a lot of content out there, but nothing seemed to give me that "Hello world!" experience I am used to when trying out new things. This guide is here to solve that.
There is no point in me repeating the installation instructions since the Doom Emacs official "Getting Started" covers way more than I ever could.
The only to remember is this:
- Install Emacs & Dependencies
- Install Doom Emacs
They also recommend running
doom doctor after if it's you're first time. I would do this if I were you.
This will identify any missing dependencies and prevent issue when we run Doom Emacs.
There were a couple issues I ran into after following the installation steps for macOS.
It's supposed to add it for you, but maybe my zsh configuration is wonky and messed that up. To fix, run this from the terminal:
I don't remember the exact error, but I was missing a package/dependency called
marked. To fix, install with npm/yarn:
npm i -g markedyarn global add marked
Figured it out thanks to this issue.
unable to detect fonts because fontconfig isn't installed
To fix, install with brew using:
brew install fontconfig
The first thing I do in any new technology or program is the famous, "Hello world!".
To do that in Doom, do the following:
- Open Emacs
SPC b N— create new empty buffer
- Type "Hello, Doom Emacs!"
SPC b s- save buffer (use default location or pick)
- Type in name of file — hello.txt
- Hit enter
Boom! You've created your first file with Doom Emacs.
Note: I like to think of a buffer as a scratchpad. It exists in memory but has not yet been written to disk as a file.
After you've created this file, you probably want to close it.
To do so, we have to clear the frame. Hit
SPC q F.
This will bring you back to the start with the Doom logo.
A list of things you might be wondering how you can do.
I felt annoyed that I had to save my buffer every so often. Well turns out you can turn on auto-save.
Using this below, it auto-saves every 15 seconds.
- Open your config:
- Add this block:;; This is so buffers auto-save;; auto save(setq auto-save-visited-interval 15)(auto-save-visited-mode +1)
- Restart Doom
If you're like me and you want it to add a new item when hitting
return in a bulleted list, you can use a package called
- Add the package inside
- Add this to your
(add-hook 'org-mode-hook(lambda () (org-autolist-mode)))
- Close Doom and run
- Open Doom and voilà, it works!
Here are a list of handy resources: