From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Brown Subject: Capturing to a list in a dynamic 2nd level heading Date: Mon, 13 Aug 2012 17:26:43 +0100 Message-ID: <1344875203.2482.140661114279681.51ABA6DA@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0xTb-0005sU-Cb for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 12:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0xTZ-0007rl-Ga for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 12:26:47 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:35847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0xTZ-0007rL-Co for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 12:26:45 -0400 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 82C4B206C4 for ; Mon, 13 Aug 2012 12:26:43 -0400 (EDT) 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 Hi all, Is it possible with org-capture to create a template that would create the following: * Log ** 2012 - Week 33 - One liner of interest - Another one liner of interest So that is a capture template that generates the 2nd level heading when required and the text entered is converted to a list entry which is added to the end of the list. (format-time-string "%G - Week %W") is the correct date string, but file+headline creates a top level heading and file+olp expects it to already exist. It seems that the text entered must also become a sub heading. Is that correct? I'm trying to achieve something very similar to this http://metajack.im/2009/01/01/journaling-with-emacs-orgmode/ Any suggestions greatly appreciated. I haven't managed to strike gold in the list archive. Simon -- Simon Brown