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.
| Question | Key | Command |
|---|---|---|
| What does this key do? | SPC h k | describe-key |
| What does this function do? | SPC h f | describe-function |
| What is this variable, and what is its value now? | SPC h v | describe-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.
- 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).
- The documentation string that the author wrote.
- 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 to | Key | Command |
|---|---|---|
| Search all active key bindings | SPC h b b | part of describe-bindings |
| Read a message that disappeared | SPC h e | view-echo-area-messages |
| Get a backtrace on the next error | SPC h d d | toggle-debug-on-error |
| Open Doom's own manual | SPC h d h | doom/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.
- 1Press SPC h and wait.First, predict: how many of the entries can you name before the list appears?
- 2Press SPC h k, then press SPC f s.First, predict: the name of the command.
- 3In that help buffer, move to the file name on the first line and press RET.
- 4Press SPC h v, type
doom-font, and press RET.First, predict: the family and the size. Your config.el sets them on line 24. - 5Do the same for
scroll-margin(your line 65) and fordisplay-line-numbers-type(your line 39).First, predict: the two values. - 6Line 179 of your
config.elis(add-hook 'rfc-mode-hook #'display-line-numbers-mode 'relative). Press SPC h f, typeadd-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? - 7Press SPC h b b and type
debug. - 8Press SPC h e.
Recall
Close the tables above before you answer. The effort to remember is the point.