From: Zhongwei Yao <ashi08104@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Problem in customizing org-agenda-custom-commands
Date: Wed, 16 Mar 2016 10:06:00 +0800 [thread overview]
Message-ID: <CAJnfWeGWxPqLNcb=_uSuO2GiDYp6gEyowxQ-Yv5zLB-oEsrfZA@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2016-03-16 2:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJnfWeGWxPqLNcb=_uSuO2GiDYp6gEyowxQ-Yv5zLB-oEsrfZA@mail.gmail.com' \
--to=ashi08104@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).