From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: How to keep something at the bottom of an Org file Date: Fri, 17 Jun 2016 17:32:26 +0200 Message-ID: <84fusbltkl.fsf@gmail.com> References: <84mvmm5vxg.fsf@gmail.com> <87r3byz9o9.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvmP-00026l-UB for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 11:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDvmL-0002pl-TB for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 11:33:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:52681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvmL-0002pc-LL for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 11:33:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bDvlp-0006ep-Ii for emacs-orgmode@gnu.org; Fri, 17 Jun 2016 17:33:21 +0200 Received: from x5f71b4a3.dyn.telefonica.de ([95.113.180.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2016 17:33:21 +0200 Received: from marcowahlsoft by x5f71b4a3.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2016 17:33:21 +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: emacs-orgmode@gnu.org Hi! Nicolas Goaziou 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. >> >> >> 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