Thanks very much for the hint! I figured it out
into a package “no-solutions-in-html.ts” and added it to the document.
Now I’m trying to get this to load for every new document. The documentation says to add
(when (buffer-newly-created? (current-buffer))
(set-style-list (append (get-style-list) '("no-solutions-in-html")))
to my-init-buffer.scm, but this doesn’t add the package to a new document. If I evaluate the (set-style-list …) command in a document, the package is added. Has anything changed to buffer initialisation since the documentation was written?
My guess is that because the system’s init-buffer.scm is run before the user’s my-init-buffer.scm and because the system file manipulates the buffer, buffer-newly-created? in my-init-buffer.scm evaluates to false and the code in it is not run.