From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhongwei Yao Subject: Problem in customizing org-agenda-custom-commands Date: Wed, 16 Mar 2016 10:06:00 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7ba97ee0900606052e20f4b1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag0qY-0006Os-8V for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 22:06:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag0qX-0008DV-A2 for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 22:06:02 -0400 Received: from mail-ig0-x22c.google.com ([2607:f8b0:4001:c05::22c]:34594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag0qX-0008DG-4y for emacs-orgmode@gnu.org; Tue, 15 Mar 2016 22:06:01 -0400 Received: by mail-ig0-x22c.google.com with SMTP id av4so102661731igc.1 for ; Tue, 15 Mar 2016 19:06:00 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7ba97ee0900606052e20f4b1 Content-Type: text/plain; charset=UTF-8 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 --047d7ba97ee0900606052e20f4b1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, list,
I'm trying to customize org-agenda-custom-comman= ds like following:

(setq org-agenda-custom-commands
=C2= =A0 =C2=A0 =C2=A0 `(("rm" "Week in review"
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0agenda ""
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0((org-agenda-span 'week)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-start-on-weekday 0)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-agenda-overriding-header "Week in Rev= iew"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 ,(concat "~/wiki/review/" (format-time-strin= g "%Y-week-%W" (current-time)) ".html")
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 ))

=
I want to save my store agenda file t= o file with dynamic filename in format: ~/wiki/review/year#-week-week#.html= . (e.g. when on week 10, the filename should be=C2=A0~/wiki/review/2016-wee= k-10.html. when on week 11, it is=C2=A0~/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
--047d7ba97ee0900606052e20f4b1--