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?


1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.