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

2011-01-08 Thread Erik Butz
Hi, ok, sorry I made a copy-paste error into the mail for the function and the call. But indeed I wasn't aware that this had become standard. Indeed after pulling the latest version and removing those statements everything (including the current time!) is working. Sorry for the noise. Thanks, E

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

2011-01-07 Thread suvayu ali
Hi Erik, On Fri, Jan 7, 2011 at 3:46 PM, Erik Butz 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 > > * Curr

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

2011-01-07 Thread Erik Butz
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)

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

2011-01-07 Thread suvayu ali
On Fri, Jan 7, 2011 at 11:31 AM, Erik Butz 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 under

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

2011-01-07 Thread Erik Butz
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? Thanks, Erik On Sun, Dec 12, 2010 at 10:31 P

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

2010-12-12 Thread Matt Lundin
Eric S Fraga writes: > Carsten Dominik writes: > > [...] > >> I agree that this is creative and great. >> >> However having the current time in the time grid is so useful that >> I have now made it the default, no diary sexp needed. > > Thanks for this, Carsten. I like being able to change the

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

2010-12-12 Thread suvayu ali
On Sun, Dec 12, 2010 at 9:30 AM, Carsten Dominik wrote: > > However having the current time in the time grid is so useful that > I have now made it the default, no diary sexp needed. > > If you don't like the way it looks, change the variable > `org-agenda-current-time-string' and the face > `org-

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

2010-12-12 Thread Eric S Fraga
Carsten Dominik writes: [...] > I agree that this is creative and great. > > However having the current time in the time grid is so useful that > I have now made it the default, no diary sexp needed. Thanks for this, Carsten. I like being able to change the face easily (in my case, I simply se

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

2010-12-12 Thread Carsten Dominik
On Dec 6, 2010, at 4:39 PM, Matt Lundin wrote: Julien Danjou 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 th

[Orgmode] Re: Including current time in agenda

2010-12-06 Thread Matt Lundin
Julien Danjou 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

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

2010-12-06 Thread suvayu ali
Hi Rémi and Carsten, On Mon, Dec 6, 2010 at 3:59 PM, Rémi Vanicat wrote: > Suvayu Ali 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)))

[Orgmode] Re: Including current time in agenda

2010-12-06 Thread Rémi Vanicat
Suvayu Ali 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