7
votes
Accepted
Can emacs show formatted backtraces?
Is there a way to get a pretty-printed backtrace buffer?
There is, but you'll have to wait for Emacs 27 to be released or get a build of it in the meantime. Quoth its etc/NEWS file:
* Changes in ...
5
votes
Accepted
How pretty format XML in Windows?
Try the command sgml-pretty-print from sgml-mode. This operates on the region, so you could mark the buffer first:
C-x h
M-x sgml-pretty-print
Or maybe define a command :
(defun my-xml-pretty-print ...
3
votes
Accepted
Format alist into bullet points
I am not sure what kind of answer you expect, but of course it is possible to get the output as a string. It looks like you already know some elisp (assuming that you posted a self defined function), ...
2
votes
Accepted
Emacs, pretty print but showing spaces and \n
The following lisp code modifies org-babel-variable-assignments:plantuml.
If you prefix a variable of a plantuml source block with json: newlines escaped with the character ?\\ are not stripped from ...
2
votes
yaml-mode empties whitespace lines
With help from @wvxvw, the problem wasn't yaml-mode, but my before-save-hooks. That listed prelude-cleanup-maybe as the only entry. Disabling prelude-clean-whitespace-on-save fixed the problem. With ...
2
votes
Accepted
Working with printed macro expansions
The question is really more about printing Lisp sexps (including results of evaluation) than it is about macro expansion, per se. It's just that macro expansion typically results in a large Lisp sexp ...
1
vote
Accepted
How to print a Elisp form with a specific prefix string on each line?
All that pp does is call pp-to-string on the object and then it calls princ to print the string. So you can use pp-to-string in your own function and then manipulate the resulting string any way you ...
1
vote
Can emacs show formatted backtraces?
I haven't used it myself, but there is this gist born from this reddit post. A comment on the reddit post includes this screen shot. Maybe it meets your needs.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pretty-print × 14formatting × 2
indentation × 1
debugging × 1
regular-expressions × 1
email × 1
elisp-macros × 1
javascript × 1
print × 1
json × 1
scheme × 1
xml × 1
notmuch × 1
backtrace × 1
data-structures × 1
alists × 1