A
being the set of all the .org files I use for schedules, I restrained agenda searches to A
like this :
(setq org-agenda-files (quote ("../file_1.org"
"../file_2.org"
...
"../file_n.org"
)))
It is useful to be able to see all the tasks stored in these files in an agenda view. However, I would also like to be able to have an agenda view showing only the content of a specific subset of A
. This specific subset being different according to the project I'm working on.
For example, let's say I would like to switch between org-agenda-list
for file_1.org
and file_2.org
and org-agenda-list
for file_5.org
.
org-agenda-files
when you callorg-agenda
or when you expressly call one of the three main functions, i.e.,org-agenda-list
,org-tags-view
and/ororg-search-view
? E.g.,(let ((org-agenda-files '("../file_1.org" "../file_2.org"))) ...)
(let ((org-agenda-files '("../file_1.org" "../file_2.org"))) ...)
?C-c a a
. Which corresponds toM-x org-agenda-week-view
(defun my-function (&optional iso-week) "Doc-string for this function." (interactive "P") (let ((org-agenda-files '("../file_1.org" "../file_2.org"))) (org-agenda-week-view iso-week)))
Inasmuch as I use a highly modified older version oforg-mode
, I don't really have a way of testing this proposed function without setting everything up again from scratch.