emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Ypo
Subject: SOLVED: Could habits appear in the correspondent hour in org-agenda?
Date: Sun, 30 May 2021 13:07:05 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2

It works, thanks!

El 30/05/2021 a las 6:04, Ihor Radchenko escribió:
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]