Skip to content

Commit 42db2cc

Browse files
committed
M-x commands are now persisted across Lem restarts
1 parent 4d84080 commit 42db2cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/en/usage/usage.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ This pop-up also shows you the associated keybinding of a command.
4242

4343
![](/completion-with-keybindings.png "Interactive completion of commands, showing the keybinding of each function.")
4444

45+
These M-x commands are persisted across sessions. You can disable it with:
46+
47+
```lisp
48+
(setf lem-core/commands/other:*persist-M-x-commands* nil)
49+
```
50+
51+
and you can change these parameters:
52+
53+
- `lem-core/commands/other:*history-limit*`: the number of commands that are saved to disk. Defaults to 1000.
54+
- `lem-core/commands/other:*max-M-x-candidates-from-history*`: the number of saved commands we see at the top when calling M-x. Defaults to 10.
55+
56+
NB: this persistence was added on August, 2025.
57+
4558

4659
## Opening files
4760

0 commit comments

Comments
 (0)