The Computer Oracle

Loading all org files on a folder to agenda

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Romantic Lands Beckon

--

Chapters
00:00 Loading All Org Files On A Folder To Agenda
00:23 Accepted Answer Score 12
00:37 Answer 2 Score 7
01:24 Thank you

--

Full question
https://superuser.com/questions/633746/l...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#emacs #orgmode #elisp

#avk47



ACCEPTED ANSWER

Score 12


Inspired on the answer given by Aaron, I change my configuration to

(setq org-agenda-files (list "~/org"))

and the problem was solved.




ANSWER 2

Score 7


Using the Org mode included with Emacs 24.3, from C-h v org-agenda-files RET:

If an entry is a directory, all files in that directory that are matched by
`org-agenda-file-regexp' will be part of the file list.

And from C-h v org-agenda-file-regexp RET:

org-agenda-file-regexp is a variable defined in 'org.el'.
Its value is "\\`[^.].*\\.org\\'"
[...]
You can customize this variable.

So, in short: evaluate (add-to-list 'org-agenda-files (expand-file-name "~/org")) and, if your org-agenda-file-regexp is at the default value, Org mode will read agenda items from any file in ~/org whose name ends in .org. (If your org-agenda-file-regexp isn't at the default value, or if you need it to match more than just files whose names end in .org, then customize it to your needs via M-x customize-variable RET org-agenda-file-regexp RET.)