|
From: | Teemu Likonen |
Subject: | Pretty-printing lists (adding newlines and indent) |
Date: | Thu, 31 Dec 2009 17:43:55 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Is there an easy way to pretty-print lists in Emacs Lisp? I mean adding newlines and indents like in the inferior-emacs-lisp-mode (M-x ielm): ELISP> '((a1 a2) (b1 (1 2 3 4 5)) (c1 c2)) ((a1 a2) (b1 (1 2 3 4 5)) (c1 c2)) I have a potentially big multi-level hierarchical list data which I'd like to PRIN1 to a buffer. Having the whole list as a single line is ugly and unreadable.
[Prev in Thread] | Current Thread | [Next in Thread] |