reddit / emacs

Having an issue with habit showing up in Org Agenda

timmymayes · 2022-04-19 16:36
I'm following the Emacs From Scratch series and I'm on the habits setup section in video #6. My agenda looks like this &#x200B; Week-agenda (W16): Monday 18 April 2022 W16 Tuesday 19 April 2022 tasks: In 1 d.: TODO [#A] Merge the PR Wednesday 20 April 2022 tasks: Deadline: TODO [#A] Merge the PR Thursday 21 April 2022 Friday 22 April 2022 Saturday 23 April 2022 Sunday 24 April 2022 My habits file is this: * TODO Brush Teeth SCHEDULED: <2022-04-19 Tue.+1d> :PROPERTIES: :STYLE: habit :END: My init.el file has my habits enabled as below and the file added to org agenda as below (setq org-agenda-files '("~/Projects/emacsone/OrgFiles/tasks.org") '("~/Projects/emacsone/OrgFiles/habits.org") (require 'org-habit) (add-to-list 'org-modules 'org-habit) (setq org-habit-graph-column 60)) I've also confirmed in the agenda that org-habit-toggle-habits is on. When i click the schedule date of the item inside of my habits file it jumps to a Day -agenda view but doesn't show the habit. Day-agenda (W16): Tuesday 19 April 2022 tasks: In 1 d.: TODO [#A] Merge the PR Please let me know if you need any other information to aid in assisting me.
podtatranec · 2022-04-19 17:04
Are you sure your org-agenda-files are set correctly? In the config you posted its not a list of paths
timmymayes · 2022-04-19 17:18
The Emacs From Scratch series does it this way. I gather from your response that I can just list a directory and have it grab \*.org files in said directory?
podtatranec · 2022-04-19 17:54
Basically... >(setq org-agenda-files '("\~/Projects/emacsone/OrgFiles/tasks.org") '("\~/Projects/emacsone/OrgFiles/habits.org") Pretty sure this is supposed to be: >(setq org-agenda-files '("~/Projects/emacsone/OrgFiles/tasks.org" "~/Projects/emacsone/OrgFiles/habits.org")) Or if you want you could have it consider all org files under certain directory to be agenda files (using `directory-files-recursively`) but I'd generally not recommend based on personal experience.
timmymayes · 2022-04-19 19:30
Oooh I'll try that when I'm home. Thanks!
timmymayes · 2022-04-21 02:32
That got it!