diff options
author | Michael Griffiths <mikey@cich.li> | 2015-12-17 17:03:45 +0000 |
---|---|---|
committer | Michael Griffiths <mikey@cich.li> | 2015-12-17 17:03:45 +0000 |
commit | 1704d16f8a52242c5c4d909c9d66fe396324e4aa (patch) | |
tree | 5c9eafe6a3bcf8215325c4aaf3da6ffa1dcde314 /cider-client.el | |
parent | 7e5d4c60ca4f708246be05eef403297b4c956911 (diff) |
Use the pprint-fn slot when making format-edn requests
Diffstat (limited to 'cider-client.el')
-rw-r--r-- | cider-client.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cider-client.el b/cider-client.el index d331dd57..79ecc7b6 100644 --- a/cider-client.el +++ b/cider-client.el @@ -771,7 +771,8 @@ If CALLBACK is nil, use `cider-load-file-handler'." (let* ((response (thread-first (list "op" "format-edn" "session" (cider-current-session) "edn" edn) - (append (and right-margin (list "print-right-margin" right-margin))) + (append (and right-margin (list "print-right-margin" right-margin)) + (and (cider--pprint-fn) (list "pprint-fn" (cider--pprint-fn)))) (cider-nrepl-send-sync-request))) (err (nrepl-dict-get response "err"))) (when err |