I recently encountered this problem:
And sure enough, on macOS, I find that
nil. The answer suggests setting the variable to a static list of filenames in .emacs.
However, on my Linux machine, this is unnecessary. I find that
org-agenda-files will always be a list of whatever Org files I have open. I'm using the same .emacs on macOS as I am on Linux.
I have Emacs 26.2 on the Mac, and 26.1 on Linux.
How do I get org-mode on the Mac to auto-populate the
org-agenda-files list like it does on Linux?