emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] date next year


From: Erik Hetzner
Subject: Re: [O] date next year
Date: Mon, 23 Dec 2013 14:41:11 -0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Fri, 20 Dec 2013 12:34:43 +0000 (UTC),
Rene wrote:
> 
> How can I set org-agenda-custom-commands so that I can get the tasks past a
> date in the coming year?
> 
> Suppose I'm interested in things past next september.  This
> 
>       ("y"
>        "Next year's appointments"
>        tags "TIMESTAMP>=\"<2014-09-01>\"")
> 
> works alright as long as we are before that date but won't work anymore next
> october.  I would have to modify my org config file each year.
> 
> Is there a generic way to indicate "next year"?
> 
> Thanks.

Hi Rene,

I don’t think there is a generic way, but you can use something like
this for your agenda view:

  ("y"
   "Next year's appointments"
   tags (format "TIMESTAMP>=\"<%s-09-01>\""  (+ 1 (calendar-extract-year 
(calendar-current-date)))))

best, Erik

-- 
Sent from my free software system <http://fsf.org/>.



reply via email to

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