[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Automatic move DONE items to the tail of the list
From: |
Bastien |
Subject: |
Re: [Orgmode] Automatic move DONE items to the tail of the list |
Date: |
Wed, 16 Jun 2010 22:15:25 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.97 (gnu/linux) |
Marcelo de Moraes Serpa <address@hidden> writes:
> Is there any way I could setup org to, at each save, re-order DONE items to
> the
> end of their respective lists?
You might try this:
,----
| (add-hook 'org-mode-hook
| (lambda()
| (add-hook 'before-save-hook
| (lambda()
| (save-excursion
| (goto-char (point-min))
| (org-sort-entries-or-items nil ?o))))))
`----
It should sort top level entries by TODO order (untested).
--
Bastien