From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel J. Sinder" Subject: org-remember templates with dynamic target headline Date: Tue, 16 Jun 2009 20:27:59 -0700 Message-ID: <4A3862BF.8040404@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGlom-0007Hf-QP for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 23:28:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGloi-0007Eh-IB for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 23:28:08 -0400 Received: from [199.232.76.173] (port=46453 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGloi-0007Eb-1s for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 23:28:04 -0400 Received: from caiajhbdccac.dreamhost.com ([208.97.132.202]:56334 helo=randymail-a1.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGloh-0001D8-O5 for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 23:28:03 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode I want a remember template that will have a target headline based on the date on which I call org-remember. For a simple example, the effect I'd like to achieve is shown by putting the following in my .emacs: (setq org-remember-templates `(("Journal" ?j "* %u %?\n" "~/org/wjournal.org" ,(format-time-string "%G: Week %V")))) I'm an elisp noob, but I realize the problem here is that format-time-string is only evaluated once when my .emacs is read. So, unless I restart emacs every week. This doesn't work. How can I cause format-time-string to be re-evaluated whenever org-remember is called? Thanks, Dan