Doom Emacs

Ask Emacs

November 19, 2026

Your mission has four parts: speed, your config, Org, and your own extensions. One skill comes before all four. You must be able to ask the editor what it is doing.

Emacs is a Lisp program that is running. Each key calls a function. Each setting is a variable. Emacs keeps the documentation for each function and each variable in memory, and it can show you the source. So you do not search the web first. You ask Emacs first.

Three questions

Almost every problem starts as one of these questions.

QuestionKeyCommand
What does this key do?SPC h kdescribe-key
What does this function do?SPC h fdescribe-function
What is this variable, and what is its value now?SPC h vdescribe-variable

These keys are from Doom's Getting Started guide, in the Troubleshoot section. In Doom with evil, SPC h is the help prefix. In Emacs without Doom, the prefix is C-h. The Emacs manual uses C-h, so translate when you read it.

A command is a function that you can call with a key or with M-x. That is why SPC h f works for commands also. The manual says the same.

How to read a help buffer

Each help buffer gives you the same three things.

  1. The name, and the file where it is defined. The file name is a link. The link opens the source if the source files are installed (Name Help).
  2. The documentation string that the author wrote.
  3. For a variable, the value that it has at this moment.

The value is the important part for your config. Your config.el says what you asked for. SPC h v says what Emacs has. When the two are different, you have found a bug.

Four more keys

You want toKeyCommand
Search all active key bindingsSPC h b bpart of describe-bindings
Read a message that disappearedSPC h eview-echo-area-messages
Get a backtrace on the next errorSPC h d dtoggle-debug-on-error
Open Doom's own manualSPC h d hdoom/help

Source: the same Troubleshoot section. The full list is in the help system reference.

Drill

Do this in your real editor. For each step, make the prediction first. Then do the step. Then open the expected result.

Ask your own editor · about 10 min0 of 8 matched
  1. 1
    Press SPC h and wait.
    First, predict: how many of the entries can you name before the list appears?
  2. 2
    Press SPC h k, then press SPC f s.
    First, predict: the name of the command.
  3. 3
    In that help buffer, move to the file name on the first line and press RET.
  4. 4
    Press SPC h v, type doom-font, and press RET.
    First, predict: the family and the size. Your config.el sets them on line 24.
  5. 5
    Do the same for scroll-margin (your line 65) and for display-line-numbers-type (your line 39).
    First, predict: the two values.
  6. 6
    Line 179 of your config.el is (add-hook 'rfc-mode-hook #'display-line-numbers-mode 'relative). Press SPC h f, type add-hook, and read the list of arguments at the top of the help buffer.
    First, predict: what the third argument does. What did the author of this line think that 'relative does?
  7. 7
    Press SPC h b b and type debug.
  8. 8
    Press SPC h e.

Recall

Close the tables above before you answer. The effort to remember is the point.

Recall0 of 4 answered
1. A line in your config sets a variable that you do not know. Which key shows its documentation and its current value?
2. An error appeared at the bottom of the screen and disappeared. Where can you read it again?
3. A command fails each time you run it. You want a backtrace on the next failure. Which key do you press first?
4. You pressed a key by accident and something changed. Which key tells you the command that a key runs?