From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Butz Subject: Re: Re: Including current time in agenda Date: Sat, 8 Jan 2011 00:46:11 +0100 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=59043 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbM0b-0002jy-Fq for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 18:46:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbM0a-0006vW-7U for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 18:46:13 -0500 Received: from mail-qy0-f176.google.com ([209.85.216.176]:59634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbM0Z-0006vR-V2 for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 18:46:12 -0500 Received: by qyk10 with SMTP id 10so18454373qyk.0 for ; Fri, 07 Jan 2011 15:46:11 -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: suvayu ali Cc: Matt Lundin , org-mode mailing list , Carsten Dominik I have (defun jd:org-current-time () "Return current-time if date is today." (when (equal date (calendar-current-date)) (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 :PROPERTIES: :CATEGORY: NOW =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =96=BA :END: %%(org-current-time) in one of my .org files. That's about all I did. Any clues from this? Thanks, Erik On Sat, Jan 8, 2011 at 12:27 AM, suvayu ali w= rote: > On Fri, Jan 7, 2011 at 11:31 AM, Erik Butz wro= te: >> Hi all, >> >> thanks for this very nice feature. It's working mostly for me, but >> now, whenever I try to insert a 'date, deadline,scheduled date' I get >> an error saying: >> >> "Symbol's value as variable is void: date" >> >> which I don't quite understand. >> >> Any ideas? >> > > I have been using it without any problems so far. Could you elaborate a > little on how you are trying to use it? I just set these variables, > (both are optional though, defaults should work out of the box) > > (setq org-agenda-current-time-string "- - - NOW! - - -" > =C2=A0 =C2=A0 =C2=A0org-agenda-time-grid '((daily today) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 "----------------" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (800 1000 1200 1400 1600 1800 2000))) > >> Thanks, >> >> Erik > > -- > Suvayu > > Open source is the future. It sets us free. >