user.clj is old, and isn't ideally suited for pre-loading handy things into a repl.
An alternative might be to put your repl init stuff in a file, such as: /home/repl-init.clj: (require 'clojure.pprint) (clojure.main/repl :print clojure.pprint/pprint) And then change your repl startup script to be: java -cp clojure.jar clojure.main -i /home/repl-init.clj -r Because this is loaded after the repl is inited, you can also add lines which set repl-bound variables such as: (set! *print-length* 5) which was raised recently as being something that user.clj can't do. -- Dave -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
