I wrote almost all of my grad school work in Vim and Emacs/Evil, in a non-compsci field! It was fantastic for editing, and I used pandoc to automate proper formatting, citations, and bibliographies for my papers and thesis. 10/10 would recommend to someone who is tech savvy or has a tangential interest in programming.
If I could find a prompt that I could pre set the font, layout of the final work, and then have the program leave me alone, it would be perfect.
You're describing a workflow using TeX or LaTeX, like typesetters for publisher's use. I don't have a specific recommendation, but in your shoes, I'd look for a CLI text editor (to avoid distractions) that supports word wrapping and do your actual formatting and typesetting totally separately from your writing with LaTeX.