Search code examples
emacsorg-mode

Agenda view in Org mode


Created a .org file and added some items to it. Some items were scheduled, some with deadlines

But when I press C-c a a the scheduled items don't show up in the agenda view.

How can I make this work ?


Solution

  • M-x customize-variable RET org-agenda-files 
    

    and adding the given file to org-agenda-files fixed it for me.

    A quick way to add the current file temporarily to org-agenda-files is C-c [ (which is bound to org-agenda-file-to-front and as its name implies, adds the current file to the front of the list). You can get rid of it with C-c ].

    Adding a file to org-agenda-files permanently can only be done through customize or by setting the value in the initialization file.

    Note also that although, in general, the value of org-agenda-files is a list of files, the list can include directories (in which case all files in the directory that match org-agenda-file-regexp will be considered agenda files) or it can be just a singe file name (a string), which is supposed to contain the list of agenda files, one file per line.

    As always, it is useful to read the doc string of the variable: C-h v org-agenda-files RET.