emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Including current time in agenda


From: Erik Butz
Subject: Re: [Orgmode] Re: Including current time in agenda
Date: Sat, 8 Jan 2011 00:46:11 +0100

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 ◄——————" (current-time))))

in the .emacs file and and entry

* Current Time
 :PROPERTIES:
 :CATEGORY: NOW ——————►
 :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 <address@hidden> wrote:
> On Fri, Jan 7, 2011 at 11:31 AM, Erik Butz <address@hidden> wrote:
>> 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! - - -"
>      org-agenda-time-grid '((daily today)
>                             "----------------"
>                             (800 1000 1200 1400 1600 1800 2000)))
>
>> Thanks,
>>
>> Erik
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]