help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem in custom org-agenda-custom-commands


From: Zhongwei Yao
Subject: problem in custom org-agenda-custom-commands
Date: Sun, 13 Mar 2016 11:00:41 +0800

Hi, list,
I'm trying to custom org-agenda-custom-commands like following:

(setq org-agenda-custom-commands
      `(("rm" "Week in review"
         agenda ""
         ((org-agenda-span 'week)
          (org-agenda-start-on-weekday 0)
          (org-agenda-overriding-header "Week in Review"))
         )
        ,(concat "~/wiki/review/" (format-time-string "%Y-week-%W"
(current-time)) ".html")
        ))

I want to save my store agenda file to file with dynamic filename in
format: ~/wiki/review/year#-week-week#.html. (e.g. when on week 10, the
filename should be ~/wiki/review/2016-week-10.html. when on week 11, it
is ~/wiki/review/2016-week-11.html)

But above command will only set the file name to a fix date, which is the
date when above command evaluated. How can I solve it?

Thanks,
Zhongwei


reply via email to

[Prev in Thread] Current Thread [Next in Thread]