From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: Re: How do I insert just a time stamp in a capture template? Date: Thu, 9 Dec 2010 22:14:09 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQolb-0002hW-P2 for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 17:15:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQolW-0007f4-M0 for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 17:15:11 -0500 Received: from lo.gmane.org ([80.91.229.12]:46937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQolW-0007ep-GK for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 17:15:06 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PQolV-0008Sk-3W for emacs-orgmode@gnu.org; Thu, 09 Dec 2010 23:15:05 +0100 Received: from 203.166.111.206 ([203.166.111.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Dec 2010 23:15:05 +0100 Received: from charles.cave by 203.166.111.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Dec 2010 23:15:05 +0100 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: emacs-orgmode@gnu.org Charles Cave gmail.com> writes: > ("l" "Log Time" > entry (file+datetree "c:/charles/My Dropbox/GTD/timelog.org") > "** %U - %^{Activity} :TIME:") > How can I just include a time only in the heading? Thank you Juan for responding to my question: %(sexp) allows to include lisp expressions in a capture template. %(format-time-string "%H:%M") should insert the current time. My template now looks like ("l" "Log Time" entry (file+datetree "c:/charles/My Dropbox/GTD/timelog.org") "** %(format-time-string \"%H:%M\") - %^{Activity} :TIME:") Note the escaped quotation marks near %H:%M because this function is inside another string. Here are today's entries from the timelog.org file *** 2010-12-10 Friday **** 08:45 - Arrived - coffee and email :TIME: **** 09:00 - Updated sexp in .emacs :TIME: **** 09:13 - Responded to org-mode postings :TIME: