When you press Meta-Q to wrap a long blob of text, it doesn't work, probably because my text has no spaces. my text is the result of a curl, json with no spaces.
so how do I tell emacs to add newlines at around 80 chars mark?
Go to the beginning of the line, start a keyboard macro, advance 80 chars (C-U 80 C-F
), add a return, finish the macro and then repeat it as many times as needed.
See keyboard macros.
Cheers, Peter.
json-pretty-print
helps in your specific use-case.