Skip to content

Commit 3dce94d

Browse files
committed
CL: REPL commands
1 parent ae81892 commit 3dce94d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

content/en/usage/common_lisp.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ You can connect Lem to another, external Lisp process, with `M-x slime-connect`.
5757

5858
This Lisp process must be a `micros` server, and not `swank`.
5959

60+
### REPL commands
61+
62+
- use `C-c C-u` to clear the current input.
63+
64+
REPL history:
65+
66+
- use `M-p` (`listener-previous-input`) to recall previous inputs.
67+
- see also `listener-previous-startswith-input` so that the input you recall matches what is written on the current REPL.
68+
- use `M-n` (`listener-next-input`) to get the next input(s).
69+
- use `M-r` (`listener-isearch-history-previous`) to interactively search a previous input.
70+
- inside this prompt, use `C-r` and `C-s` to cycle between candidates.
71+
- see also `listener-previous-matching-input RET regexp RET`, an interactive command to find a previous input matching a regexp.
72+
73+
Clear output:
74+
75+
- use `C-c M-o` (`listener-clear-buffer`) to clear all the REPL buffer.
76+
77+
REPL commands are defined in [`listener-mode.lisp`](https://github.com/lem-project/lem/blob/main/src/ext/listener-mode.lisp).
78+
6079

6180
### Configuration
6281

0 commit comments

Comments
 (0)