Use a macro for the "ensure-trailing-newline" setting

So we can see that the setting is used in the document loader and saver.