2

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?

american-ninja-warrior
  • 3,773
  • 2
  • 21
  • 40
  • 1
    Maybe [that proposal to use `json-pretty-print`](https://emacs.stackexchange.com/a/50739/2370) helps in your specific use-case. – Tobias Oct 11 '19 at 12:29

1 Answers1

3

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.

Peter Frings
  • 146
  • 2