You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2026. It is now read-only.
Repository navigation
Commit 8c63a04
Browse filesBrowse the repository at this point in the historyBrowse files
To interact with the `lambda-discipline` REPL directly inside Emacs, you can use the provided `lbd-inf-repl.el` script. This sets up an **inferior REPL buffer** powered by `comint-mode`.
16
+
17
+
### Getting Started
18
+
19
+
1.`C-x C-f lbd-inf-repl.el RET`
20
+
2.`M-x eval-buffer RET`
21
+
3.`M-x lbd-run-inf-repl RET`
22
+
23
+
This will open a buffer called `*lbd*` and start the REPL using `./cmake-build-debug/lbd.exe --repl` with the project root (`../../`) as the working directory.
24
+
25
+
### Sending Code to the REPL
26
+
27
+
- Select a region in your buffer and press `C-c C-e` to send it to the REPL.
28
+
- You can also type directly into the `*lbd*` buffer just like a normal shell.
29
+
30
+
### Notes
31
+
32
+
- The REPL runs with the project root set as the working directory, so relative paths (e.g. `:load examples/foo.lbd`) work the same as on the command line.
33
+
- If you update the REPL binary, just restart Emacs or rerun `M-x run-lbd`.
0 commit comments