From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Re: Including current time in agenda Date: Fri, 7 Jan 2011 16:04:48 -0800 Message-ID: References: <87mxoi52sp.fsf@fastmail.fm> <9DA94FAE-E0CA-46CE-9F74-C1F462825A71@gmail.com> <871v5m27y4.fsf@ucl.ac.uk> <87zksa3ch1.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=39242 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbMIx-0006ps-5N for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 19:05:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbMIv-0001MO-QT for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 19:05:10 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:51192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbMIv-0001MC-Jg for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 19:05:09 -0500 Received: by fxm12 with SMTP id 12so10941189fxm.0 for ; Fri, 07 Jan 2011 16:05:08 -0800 (PST) In-Reply-To: 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: Erik Butz Cc: Matt Lundin , org-mode mailing list , Carsten Dominik Hi Erik, On Fri, Jan 7, 2011 at 3:46 PM, Erik Butz wrote: > I have > > > (defun jd:org-current-time () > =C2=A0"Return current-time if date is today." > =C2=A0(when (equal date (calendar-current-date)) > =C2=A0 (format-time-string "%H:%M =E2=97=84=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94" (current-time)))) > > in the .emacs file and and entry > > * Current Time > =C2=A0:PROPERTIES: > =C2=A0:CATEGORY: NOW =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=96=BA > =C2=A0:END: > > %%(org-current-time) > > in one of my .org files. That's about all I did. > To get the current time, you don't need to do that any more. After Carsten's change org shows that by default. Just remove that entry from your agenda file and if you have any entries for today, the current time shows up as NOW by default. You can even customise the face by customising the face `org-agenda-current-time'. As for your problem with your current setup, I think the problem is you call the incorrect sexp. The entry should be, %%(jd:org-current-time) > Any clues from this? > > Thanks, > > Erik Hope this helps --=20 Suvayu Open source is the future. It sets us free.