Skip to content

Instantly share code, notes, and snippets.

@ragnard
Created March 19, 2013 16:50
Show Gist options
  • Save ragnard/5197825 to your computer and use it in GitHub Desktop.
Save ragnard/5197825 to your computer and use it in GitHub Desktop.
limit print length
;; specify the print length to be 100 to stop infinite sequences
;; killing things.
(defun nrepl-limit-print-length ()
(interactive)
(nrepl-send-string-sync "(set! *print-length* 100)" "clojure.core"))
(defun nrepl-unlimit-print-length ()
(interactive)
(nrepl-send-string-sync "(set! *print-length* nil)" "clojure.core"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment