Skip to content

Commit b601d48

Browse files
committed
Tweak the README a bit
1 parent c30f90e commit b601d48

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ use a prefix arg when invoking `inf-clojure` (`C-u M-x inf-clojure`).
176176
### REPL Features
177177

178178
The supported REPL-features are in an alist called
179-
`inc-clojure-repl-features` and it has the following shape:
179+
`inf-clojure-repl-features` and it has the following shape:
180180

181181
```emacs-lisp
182182
'((cljs . ((doc . "(cljs.repl/doc %s)")
@@ -189,10 +189,17 @@ The supported REPL-features are in an alist called
189189
(macroexpand-1 . "(cljs.core/macroexpand-1 '%s)"))))
190190
```
191191

192-
If you want to add a new REPL type, just `(add-to-list
193-
'inf-clojure-repl-features (cons new-repl-type '((doc
194-
. "(myrepl/doc-command %s") ...)))` since the data structure is just an
195-
alist of alists.
192+
If you want to add a new REPL type, just do something like:
193+
194+
``` emacs-lisp
195+
(add-to-list 'inf-clojure-repl-features
196+
(cons new-repl-type '((doc . "(myrepl/doc-command %s")
197+
(source . "...")
198+
...)))
199+
```
200+
201+
The `inf-clojure-repl-features` data structure is just an
202+
alist of alists, so you can manipulate it in numerous ways.
196203

197204
If you want to update a specific form there is a function
198205
`inf-clojure-update-repl-feature` which can be used like so:

0 commit comments

Comments
 (0)