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: suvayu ali
Subject: Re: [Orgmode] Re: Including current time in agenda
Date: Fri, 7 Jan 2011 16:04:48 -0800

Hi Erik,

On Fri, Jan 7, 2011 at 3:46 PM, Erik Butz <address@hidden> wrote:
> 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.
>

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

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

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