✅ Step-by-step: Set permanent font size in Doom Emacs
To permanently increase the font size in Doom Emacs, you need to edit your Doom Emacs configuration file: ~/.doom.d/config.el. Here’s how:
✅ Step-by-step: Set permanent font size in Doom Emacs
-
Open your Doom config:
SPC f p ;; (or M-x doom/open-private-config)or manually open:
~/.doom.d/config.el -
Set the font face (including size):
Add or edit the
doom-fontvariable:;; Example: Fira Code, size 18 (setq doom-font (font-spec :family "Fira Code" :size 18))If you use other fonts (e.g., JetBrains Mono, Source Code Pro), just change the
:family. -
Optional – configure variable-pitch and big font (used for presentations):
(setq doom-variable-pitch-font (font-spec :family "sans" :size 18) doom-big-font (font-spec :family "Fira Code" :size 24)) ;; for SPC z b -
Apply changes:
Run the following in your terminal:
doom sync -
Restart Emacs (or run
M-x doom/reloadorSPC h r r) to apply the new font.
🧪 Tips for Troubleshooting
-
To see available fonts: Run this in Emacs:
(print (font-family-list)) -
Ensure the font is installed on your system (e.g., Fira Code, JetBrains Mono).
-
You can use
M-x describe-fontto inspect currently active font.
- Install the
fira-codefont on Rocky Linux:
sudo dnf install -y fira-code-fonts