unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* comint: pretty printing
@ 2015-01-06 12:01 Catonano
  0 siblings, 0 replies; only message in thread
From: Catonano @ 2015-01-06 12:01 UTC (permalink / raw)
  To: help-gnu-emacs

Probably a naive question, I apologize, but I could use some help

I would like inf-clojure to pretty print the output from the inferior
Clojure process

Now, this is what happens in an Elisp prompt
ELISP> '(:a :b (:c :d (:e) :f :g) :h :i)
(:a :b
    (:c :d
    (:e)
    :f :g)
    :h :i)

And this is what happens in my clojurescript prompt

boot.user=> (def my-list '(:a :b (:c :d (:e) :f :g) :h :i))
(:a :b (:c :d (:e) :f :g) :h :i)

It's Clojure code but there are no square brackets or curly braces. It
could be an Elisp list.

If I try to set

(setq comint-preoutput-filter-function '(pp))

and then

boot.user=> '(:a :b (:c :d) :e :f)
(:a :b (:c :d) :e :f)

no pretty printing.

Emacs 24.4.1

inf-clojure installed with el-get from its master branch on github


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-06 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-06 12:01 comint: pretty printing Catonano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).