Make emacs spot .htx file as a latex-mode file.
Attempt to stop my emacs from deleting trailing whitespace.

If you're using emacs and my local variables cause bizarre behaviour
for you, feel free to take them out again and I'll find another
solution to my problems.
Various changes in sections 1--3.  Jussi's concerns all addressed I think