A bit of background.
I’m trying to version-control my latex documents, and the effectiveness of this initiative would be greatly improved if I adopt a one-sentence-per-line approach.
For instance, the following is what my documents will look like.
Some text here. New stencence on the same paragraph. Some more text, still on the same paragraph. This is another paragraph.
My question is simple.
How much of that can I automate/improve with Emacs?
The following two points are what I have in mind.
My sentences are long, so I need to wrap lines without actually filling them. That is, a very long sentence needs to be displayed over several lines on my screen, but it needs to be a single line in the “.tex” file. This would preferably be done in a way that doesn’t wrap equations.
visual-line-modewraps at window width, that is too wide. I need something that wraps lines and limits their width to 80 or so characters. Just like
fill-paragraphwould normally do, but without actually breaking the lines in the file.
- I can manually break the line after each sentence, but it would be
highly preferable if I could configure
fill-paragraph(or maybe even
auto-fill-mode) to put one sentence per line as well.
visual-line-mode. But in addition to that line wrapping, you also need to auto insert a newline character after each sentence too, correct?