From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Is it generally better practice to specify local variables at the first line for Org files? Date: Wed, 5 Oct 2016 07:35:32 -0400 Message-ID: References: <84vax7uwls.fsf@gmail.com> <87shsbnnsh.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c12fb8a317db3053e1c93e5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brkU5-0001Cy-Ie for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 07:35:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brkU2-0005Ru-V7 for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 07:35:36 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:36663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brkU2-0005Ri-Iz for emacs-orgmode@gnu.org; Wed, 05 Oct 2016 07:35:34 -0400 Received: by mail-wm0-x235.google.com with SMTP id k125so261966250wma.1 for ; Wed, 05 Oct 2016 04:35:34 -0700 (PDT) In-Reply-To: <87shsbnnsh.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Marco Wahl , "emacs-orgmode@gnu.org" --94eb2c12fb8a317db3053e1c93e5 Content-Type: text/plain; charset=UTF-8 I usually just put a headline at the end, titled "end" or "local variables", etc.., and tagged noexport, John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, Oct 5, 2016 at 5:33 AM, Nicolas Goaziou wrote: > Hello, > > Marco Wahl writes: > > > I have the same issue. Currently I try to have an extra eye on the > > bottommost org tree. I also use an extra tag to mark the org tree which > > should be bottommost. I also use the idea stated in > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg106940.html which > sorts > > the wanted org tree to the bottom when sorting. > > > > For me this works reasonably well. > > > > When you put the local variables to the top of the file you are on the > > save side AFAICT. > > > > I try to avoid too much information in the first line. I prefer to have > > the variables at the bottom. > > Local variables at the end of the buffer are, indeed, a bit painful to > handle under Org. Org Footnote handles them reasonably well, I think, > but that's about it. > > I would welcome a general solution to this, as long as it does not > impede speed of most basic Org commands. > > Do you have an idea about it? Maybe a start would be to have a dedicated > Org version of `outline-next-heading' that moves before local variables > when it reaches the end of the buffer. > > Regards, > > -- > Nicolas Goaziou > > --94eb2c12fb8a317db3053e1c93e5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I usually just put a headline at the end, titled "end= " or "local variables", etc.., and tagged noexport,

=

=
John

-----------------------------------
Profess= or John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical Engin= eering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-780= 3

On Wed, Oct 5, 2016 at 5:33 AM, Nicolas Goaz= iou <mail@nicolasgoaziou.fr> wrote:
Hello,

Marco Wahl <marcowahlsoft@gma= il.com> writes:

> I have the same issue.=C2=A0 Currently I try to have an extra eye on t= he
> bottommost org tree.=C2=A0 I also use an extra tag to mark the org tre= e which
> should be bottommost.=C2=A0 I also use the idea stated in
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg106940.html which sorts
> the wanted org tree to the bottom when sorting.
>
> For me this works reasonably well.
>
> When you put the local variables to the top of the file you are on the=
> save side AFAICT.
>
> I try to avoid too much information in the first line.=C2=A0 I prefer = to have
> the variables at the bottom.

Local variables at the end of the buffer are, indeed, a bit painful = to
handle under Org. Org Footnote handles them reasonably well, I think,
but that's about it.

I would welcome a general solution to this, as long as it does not
impede speed of most basic Org commands.

Do you have an idea about it? Maybe a start would be to have a dedicated Org version of `outline-next-heading' that moves before local variables=
when it reaches the end of the buffer.

Regards,

--
Nicolas Goaziou


--94eb2c12fb8a317db3053e1c93e5--