[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: How do you control sorting in org agenda?
From: |
Emin.shopper Martinian.shopper |
Subject: |
[Orgmode] Re: How do you control sorting in org agenda? |
Date: |
Mon, 17 May 2010 07:50:31 -0400 |
On Thu, May 13, 2010 at 4:59 PM, Bernt Hansen <address@hidden> wrote:
> "Emin.shopper Martinian.shopper" <address@hidden> writes:
>
>
> See the variable org-agenda-sorting-strategy.
>
> -Bernt
Thanks for the pointer. I put the following in my .emacs file and the
I change my prioritized items to things like TODO [#A]-01 foo, TODO
[#A]-02 bar, etc. and things sort as I wanted.
(defun org-cmp-title (a b)
"Compare the titles of string A and B"
(cond ((string-lessp a b) -1)
((string-lessp b a) +1)
(t nil)))
(setq org-agenda-cmp-user-defined 'org-cmp-title)
(setq org-agenda-sorting-strategy
'((agenda habit-down time-up priority-down category-keep)
(todo priority-down user-defined-up category-keep)
(tags priority-down category-keep)
(search category-keep)))