git » jacl.git » commit 4606970

add jacl-repl to RUN.md

author Alan Dipert
2020-04-15 07:15:25 UTC
committer Alan Dipert
2020-04-15 07:15:25 UTC
parent 24f6524adfe24d50f99fcbecca7f5eb1f6a8ae3d

add jacl-repl to RUN.md

RUN.md +12 -0

diff --git a/RUN.md b/RUN.md
index 45f0039..206cf36 100644
--- a/RUN.md
+++ b/RUN.md
@@ -123,3 +123,15 @@ evaluate JACL forms.
 You may also send forms from Lisp buffers to the JACL REPL for
 evaluation. See the documentation for `lisp-mode` for details and
 applicable key bindings.
+
+You may find the following elisp function useful. It starts or
+restarts a JACL REPL:
+
+```
+(defun jacl-repl ()
+  (interactive)
+  (let ((kill-buffer-query-functions nil))
+    (when (get-buffer "*inferior-lisp*")
+      (kill-buffer "*inferior-lisp*")))
+  (run-lisp "jacl"))
+```