Habits - using org-mode to track habits
Table of Contents
How to use org-habits
org-habit comes with a nice function called org-habit-toggle-display-in-agenda (use describe-function on it for more details) that shows a nice graph about the habits in the org agenda files.
That can be used to tell how well we are doing with our habits. In other words, it will help with habit streaking.
What do the colors in the graph mean?
Reference: https://orgmode.org/manual/Tracking-your-habits.html
Blue If the task was not to be done yet on that day.
Green If the task could have been done on that day.
Yellow If the task was going to be overdue the next day.
Red If the task was overdue on that day.
The process
- Keep marking the tasks to “Done” state on a daily bases. (Adjust the timestamp to indicate the day on which it was done). Don’t leave the date that was added my emacs. If you completed a task yesterday but mark it to “Done” state today, emacs will put today’s date on it - not yesterday’s date. So, some manual adjusting is necessary.
- If a task is marked with some other status other than “Done”, remove them from the agenda file from time-to-time. This is because, the graph would get confused and still show an “asterisk” (indicating that the task was done) even though, in reality, the task was not done.