Skip to content

Commit

Permalink
Edit section "Use REPL"
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaitami committed Nov 6, 2023
1 parent fde1761 commit 6124dc6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ To control the cache:

### Use REPL

Start REPL from terminal.
Start Planck REPL in a terminal window.

```shell
% plk
ClojureScript 1.11.60
cljs.user=>
```
plk
```

Load `tldr.cljs` and change ns to `tldr.core`.
Expand All @@ -96,7 +94,8 @@ cljs.user=> (ns tldr.core)
nil
tldr.core=>
```
Call display function as follows:

Call `display` function as follows:

```clojure
;; display page from the osx platform at random
Expand All @@ -106,7 +105,7 @@ tldr.core=> (display (rand-page "osx"))
tldr.core=> (display "linux" "tar.md")

;; to change the display language (this may occur warning message)
(binding [lang-priority-list ["ja" "en"]] (display "linux" "tar.md"))
tldr.core=> (binding [lang-priority-list ["ja" "en"]] (display "linux" "tar.md"))
```

## Configuration
Expand Down

0 comments on commit 6124dc6

Please sign in to comment.