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 ...
user avatar
  • 11.4k
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 ...
user avatar
  • 19.4k
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), ...
user avatar
  • 2,195
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 ...
user avatar
  • 30.4k
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 ...
user avatar
  • 395
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 ...
user avatar
  • 70.1k
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 ...
user avatar
  • 20.3k
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.
user avatar
  • 2,338

Only top scored, non community-wiki answers of a minimum length are eligible