[Top][All Lists]

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

[O] Problem in customizing org-agenda-custom-commands

From: Zhongwei Yao
Subject: [O] Problem in customizing org-agenda-custom-commands
Date: Wed, 16 Mar 2016 10:06:00 +0800

Hi, list,
I'm trying to customize 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?


reply via email to

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