I'd like to pretty-print an Elisp form with some arbitrary prefix string inserted at the beginning of each output line.
For example, given the following variable:
(setq var '((abc . 11)
(def . 22)
(ghi . 33)))
I'd like something like (pp-with-prefix var " ---> ") (or something like it) to be able to add the " ---> " prefix string (or anything) so I could get something like the following printed:
---> ((abc . 11)
---> (def . 22)
---> (ghi . 33))
instead of what (pp var) would normally print:
((abc . 11)
(def . 22)
(ghi . 33))