Skip to content

Commit

Permalink
Add utility examples to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
greglook committed May 11, 2014
1 parent a9ef6bf commit 015df3a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,29 @@ definition:
[mvxcvi/puget "0.4.0"]
```

From the REPL, you can use the following helper functions for some control of
Puget:

```clojure
user=> (puget/set-color-scheme! :nil [:bold :black])
{:boolean [:green]
:class-delimiter [:blue]
:class-name [:bold :blue]
:delimiter [:bold :red]
:function-symbol [:bold :blue]
:keyword [:bold :yellow]
:nil [:bold :black]
:number [:cyan]
:string [:bold :magenta]
:symbol nil
:tag [:red]}
user=> (puget/set-map-commas!)
","
user=> (puget/pprint {:z 'qx :a 123})
;; {:a 123, :z qx}
nil
```

## License

This is free and unencumbered software released into the public domain.
Expand Down

0 comments on commit 015df3a

Please sign in to comment.