From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to keep something at the bottom of an Org file Date: Wed, 15 Jun 2016 18:41:42 +0200 Message-ID: <87r3byz9o9.fsf@saiph.selenimh> References: <84mvmm5vxg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDDt4-0007JX-Jr for emacs-orgmode@gnu.org; Wed, 15 Jun 2016 12:41:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDDt2-0002ZF-Lr for emacs-orgmode@gnu.org; Wed, 15 Jun 2016 12:41:53 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:55008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDDt2-0002YF-G5 for emacs-orgmode@gnu.org; Wed, 15 Jun 2016 12:41:52 -0400 In-Reply-To: <84mvmm5vxg.fsf@gmail.com> (Marco Wahl's message of "Wed, 15 Jun 2016 17:11:23 +0200") 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 Cc: emacs-orgmode@gnu.org Hello, Marco Wahl 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. > > > 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