*print-miser-width* is a Clojure pretty-printing variable that sets the column threshold for entering miser mode. Its default value is 40. section 23.20
Miser mode helps format heavily nested source code near a narrow right margin by permitting more line breaks and reducing excessive left indentation. Bind it locally with the right margin and code dispatch. section 23.20
Changing the threshold
With *print-right-margin* bound to 30, nested code remains heavily broken across lines. Binding *print-miser-width* to 20 produces a more compact structure, keeping the outer `(condp = x ...)` together while formatting the nested form flexibly. section 23.20
Table 23.1. The dynamic variables related to pretty printing
| Name |
Namespace |
Default |
Description |
|
|
|
true |
Print escape sequences literally. |
|
|
|
false |
Print objects so they can be read back into memory. |
|
|
|
nil |
Number of items to print in a collection. |
|
|
|
nil |
Number of nesting collections level to print. |
|
|
|
false |
Should metadata be printed as part of the object. |
|
|
|
true |
Enable/disable pretty printing. |
|
|
|
fn |
Set pretty printer dispatch function. |
|
|
|
72 |
Number of columns to use before breaking into a newline. |
|
|
|
40 |
The column at which to enter miser style. |
|
|
|
nil |
Remove namespace qualifier from symbols. |
|
|
|
nil |
Print radix used for integers or ratio. |
|
|
|
10 |
Change base for printing integers or ratio. |
Compare *print-miser-width* with related pretty-printing controls, including *print-right-margin*, dispatch, and truncation variables. section 23.20
