From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Including current time in agenda Date: Sun, 12 Dec 2010 09:30:05 +0100 Message-ID: <9DA94FAE-E0CA-46CE-9F74-C1F462825A71@gmail.com> References: <87mxoi52sp.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=53167 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRhJq-0001kc-EI for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 03:30:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRhJp-0004QS-2O for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 03:30:10 -0500 Received: from mail-ew0-f43.google.com ([209.85.215.43]:50604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRhJo-0004Pu-SN for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 03:30:09 -0500 Received: by ewy22 with SMTP id 22so3242821ewy.30 for ; Sun, 12 Dec 2010 00:30:07 -0800 (PST) In-Reply-To: <87mxoi52sp.fsf@fastmail.fm> 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: Matt Lundin Cc: org-mode mailing list On Dec 6, 2010, at 4:39 PM, Matt Lundin wrote: > Julien Danjou writes: > >> On Mon, Dec 06 2010, suvayu ali wrote: >>> So far my attempts have been some variation of `<%%(format-time- >>> string >>> "%H%M")>' or `<%%(diary-entry-time ...)>'. Am I approaching this >>> the >>> wrong way? Is this not supported by the diary library? >>> >>> Thanks for any thoughts/suggestions. >> >> (defun jd:org-current-time () >> "Return current-time if date is today." >> (when (equal date (calendar-current-date)) >> (format-time-string "%H:%M Current time" (current-time)))) >> >> And use %%(jd:org-current-time) in an entry. >> > > This is great! I've been grateful for all the creative uses people > have > found for diary expressions recently (weather, current time, etc.). I agree that this is creative and great. However having the current time in the time grid is so useful that I have now made it the default, no diary sexp needed. If you don't like the way it looks, change the variable `org-agenda-current-time-string' and the face `org-agenda-current-time'. To get rid of the current time in the time grid alltogether, use (setq org-agenda-show-current-time-in-grid nil) - Carsten