It is sometimes convenient to define file local variables with comments such as the following, which must be at the end of a file.
# Local Variables:
# fill-column: 80
# End:
However, in org-mode buffers, this comments are considered to be
“inside” the very last headline. For instance, in the following
buffer, the comments will be hidden whenever subtrees C or B are
hidden.
* A
* B
** C
# Local Variables:
# fill-column: 80
# End:
I don’t really mind this hiding.
The real problem is that the comments will get carried along whenever I move the C subtree somewhere else.
For instance, if I call org-refile on C, or if I move it around
with org-metaup (and the likes), the comments are moved along with
the subtree, and then they obviously stop working.
Is there a way to tell org-mode to stop doing this?