emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Marco Wahl <marcowahlsoft@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to keep something at the bottom of an Org file
Date: Wed, 15 Jun 2016 18:41:42 +0200	[thread overview]
Message-ID: <87r3byz9o9.fsf@saiph.selenimh> (raw)
In-Reply-To: <84mvmm5vxg.fsf@gmail.com> (Marco Wahl's message of "Wed, 15 Jun 2016 17:11:23 +0200")

Hello,

Marco Wahl <marcowahlsoft@gmail.com> writes:

> in some of my Org files I want to have certain elements always at the
> very bottom of the file.
>
> Example: Often I use a subtree like
>
>     * COMMENT *MUST BE BOTTOMMOST TREE*                         :meta:bottommost:
>
>     MUST BE BOTTOMMOST TREE TO HAVE *GUARANTEED* EFFECT.
>
>     Recall that no local variable setting is taken into account above a
>     page break.
>
>     \f
>     Local Variables:
>     eval: (git-auto-commit-mode)
>     End:
>
> at the bottom to have git-auto-commit-mode for that file.
>
> I try to be disciplined but often the subtree bubbles up, e.g. after
> sorting.
>
> Has anyone a good idea how to deal with this issue?

I guess you could use `org-after-sorting-entries-or-items-hook' to
bubble down entries with :bottommost: tag.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2016-06-15 16:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15 15:11 How to keep something at the bottom of an Org file Marco Wahl
2016-06-15 16:41 ` Nicolas Goaziou [this message]
2016-06-17 15:32   ` Marco Wahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3byz9o9.fsf@saiph.selenimh \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=marcowahlsoft@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).