[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Including current time in agenda
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] Including current time in agenda |
Date: |
Mon, 06 Dec 2010 19:27:10 +0000 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Julien Danjou <address@hidden> writes:
> On Mon, Dec 06 2010, suvayu ali wrote:
>> So far my attempts have been some variation of `<%%(format-time-string
>> "%H%M")>' or `<%%(diary-entry-time ...)>'. Am I approaching this the
>
>> wrong way? Is this not supported by the diary library?
>>
>> Thanks for any thoughts/suggestions.
>
> (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.
>
> I think this is what you want?
Julien,
many thanks for proving me wrong! This is great, especially if I have
--8<---------------cut here---------------start------------->8---
*** current time
:PROPERTIES:
:CATEGORY: Now ——————►
:END:
%%(jd:org-current-time)
--8<---------------cut here---------------end--------------->8---
and change your "Current time" string to "◄——————". Now all I have to
do is get rid of the ":" put after the category string and I have a nice
symmetric time indicator!
(I'm using unicode/utf characters in case the dashes and arrow heads
don't come through)
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.213.g1ce0)
[Orgmode] Re: Including current time in agenda, Matt Lundin, 2010/12/06
Re: [Orgmode] Re: Including current time in agenda, suvayu ali, 2010/12/12
Re: [Orgmode] Including current time in agenda,
Eric S Fraga <=