emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Including current time in agenda


From: Rémi Vanicat
Subject: [Orgmode] Re: Including current time in agenda
Date: Mon, 06 Dec 2010 15:59:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Suvayu Ali <address@hidden> writes:

>>>
>>> (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.
>>
>> Wow, I overlooked this possibility.  Great.
>
> That is exactly the information I want to have, but this only inserts an
> entry in today's agenda without any timestamps.

you need to put the %%(jd:org-current-time) at the beginning of line,
with no space before it whatsoever.
-- 
Rémi Vanicat




reply via email to

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