From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to keep something at the bottom of an Org file
Date: Fri, 17 Jun 2016 17:32:26 +0200 [thread overview]
Message-ID: <84fusbltkl.fsf@gmail.com> (raw)
In-Reply-To: 87r3byz9o9.fsf@saiph.selenimh
Hi!
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>> * 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.
Thanks, I try this. FWIW here is the configuration I use, in case that
someone is interested:
(setf org-after-sorting-entries-or-items-hook
(lambda ()
(search-forward ":bottommost:")
(org-cut-subtree)
(goto-char (point-max))
(org-paste-subtree 1)))
Best regards,
--
Marco Wahl -- GPG: 0x49010A040A3AE6F2
prev parent reply other threads:[~2016-06-17 15:33 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
2016-06-17 15:32 ` Marco Wahl [this message]
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=84fusbltkl.fsf@gmail.com \
--to=marcowahlsoft@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).