emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Could habits appear in the correspondent hour in org-agenda?


From: Ihor Radchenko
Subject: Re: Could habits appear in the correspondent hour in org-agenda?
Date: Sun, 30 May 2021 12:04:39 +0800

Ypo <ypuntot@gmail.com> writes:

> Hi! Thanks for answering. It was just a thought. Habits appear like this 
> (not sure how images can be attached in the mail list):
>
> borrar-1
>
> I thought it would be interesting to have the option to show them like this:
>
> borrar-2
>
> Thanks for your interest

You can do it simply by changing sorting strategy in agenda. By default,
org-agenda-sorting-strategy is

((agenda habit-down time-up priority-down category-keep)
 (todo priority-down category-keep)
 (tags priority-down category-keep)
 (search category-keep))

You can see that for agenda `habit-down' is considered first in the
sorting order. That makes sense if you want all the habits to be grouped
together. If you prefer the habits to honour scheduled time ordering,
you simply swap `habit-down' and `time-up' in the sorting strategy:

(setq org-agenda-sorting-strategy '((agenda time-up habit-down priority-down 
category-keep)
                                    (todo priority-down category-keep)
                                    (tags priority-down category-keep)
                                    (search category-keep)))

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]