[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] how to reverse a region of outline items
From: |
Nicolas Goaziou |
Subject: |
Re: [Orgmode] how to reverse a region of outline items |
Date: |
Sat, 09 Oct 2010 19:14:51 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO) |
Hello,
C-c ^ A will sort the list alphabetically, in reversed order.
If you do not really have A, B, etc. you can, well, add "marks"
(numbers) to items with the help of `org-apply-on-list', sort the list
numerically (in reversed order, with C-c ^ N), then remove the marks.
Here is an example sexp to mark list:
(org-apply-on-list
'(lambda (c)
(org-get-bullet)
(goto-char (match-end 0))
(insert (format " %s" c))
(1+ c))
0)
Regards,
-- Nicolas