I have a very long line of text (8000 characters). I would like to format this nicely so it splits across multiple lines in a block. Where the line breaks occurs does not matter for this purpose.
before:
aaaaaaaabbbbbbbbccccccccdddddddd after:
aaaaaaaa bbbbbbbb cccccccc dddddddd I chose eight characters before a line-break, but that number does not matter either- it could be 8 or 80. fill-paragraph does not seem to work for me- nothing happens.
N.B. I'm not asking about Line Wrapping, or how the text is displayed.
(replace-regexp "\\(.\\{8\\}\\)" "\\1\n")will also do. (Naturally I would use the equivalent interactive command.)fill-paragraphdoes not work here because it breaks lines at whitespace.keyboard-macrosmight well be helped by this question. Feel free to remove the tag, if you feel that tagtext-editingis enough or you have a more helpful tag in mind.