emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem in customizing org-agenda-custom-commands
@ 2016-03-16  2:06 Zhongwei Yao
  0 siblings, 0 replies; only message in thread
From: Zhongwei Yao @ 2016-03-16  2:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

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?

Thanks,
Zhongwei

[-- Attachment #2: Type: text/html, Size: 1441 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-16  2:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16  2:06 Problem in customizing org-agenda-custom-commands Zhongwei Yao

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).