I have:
(add-hook 'text-mode-hook 'turn-on-auto-fill)
but in lisp/nxml/nxml-mode.el:
(define-derived-mode nxml-mode text-mode "nXML"
All XML files is opened with auto-fill-mode. That is inconvenient because XML file under source control and shouldn't drastically change on edits.
How can I disable auto-fill for nxml? Should I remove:
(add-hook 'text-mode-hook 'turn-on-auto-fill)
or add some workaround for nxml?