bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24625: 26.0.50; Local variables list at beginning of a file


From: Stefan Kangas
Subject: bug#24625: 26.0.50; Local variables list at beginning of a file
Date: Fri, 15 Nov 2019 04:23:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> For people who want to keep the first line short this feature could
>> help.
>> 
>> Possibly of interest:
>> 
>> My motivation asking for this feature was local variables at the bottom
>> of outline/Org files.  In my experience for those kind of files, which
>> typically consist of some trees, it is rather difficult to keep
>> something (here the local variables) at the bottom.  Too easily a
>> further tree gets appended at the end of the file or the trees in the
>> file get sorted.  On the other hand the top of those kind of files stays
>> relatively static.

I usually set up a header like the following at the end of the
file:

* org-mode configuration    :noexport:
#+STARTUP: content hidestars indent
# Local Variables:
# ispell-local-dictionary: "swedish"
# End:

That avoids accidentally exporting the header or moving it
around.  YMMV.

> If this is for Org, perhaps Org could have its own private feature?

Org already has this for various settings, but not for arbitrary Lisp
variables.  Perhaps someone could suggest to add missing options to
the org mode developer.

> In general, having the variables at the beginning will get in the way
> of reading the file's contents by humans: you will first need to skip
> the variables' section and wonder what does that do there.

Agreed.

Best regards,
Stefan Kangas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]