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
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,31 @@ to `false`: `tsc --pretty false`. However, doing this does more than
75
75
just turning off the colors. It also causes `tsc` to produce less
76
76
elaborate error messages.
77
77
78
+
## Using `typescript-comint`
79
+
80
+
`typescript-comint.el` ships with this repository and exposes a simple REPL that integrates with `typescript-mode`.
81
+
82
+
1. Ensure `typescript-comint.el` is on your `load-path` (it is if you install the package normally).
83
+
2. Start a REPL with `M-x typescript-run-repl`. Use `C-u M-x typescript-run-repl` to edit the command line if you need a different interpreter than the default `tsun`.
84
+
3. From a `typescript-mode` buffer, send code to the REPL using:
85
+
-`M-x typescript-send-last-sexp`
86
+
-`M-x typescript-send-region`
87
+
-`M-x typescript-send-buffer`
88
+
The `-and-go` variants will switch to the REPL after sending.
89
+
4. Load files directly into the REPL with `M-x typescript-load-file` (or `typescript-load-file-and-go`).
90
+
5. Switch to the REPL at any time with `M-x typescript-switch-to-repl`.
0 commit comments