From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: How to include diary anniversary entries into default org-agenda? Date: Thu, 21 Dec 2017 10:42:27 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113edae05b90100560d0a894" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRqp2-0006ru-1w for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 21:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRqp0-0004Wi-HH for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 21:43:00 -0500 Received: from mail-ot0-x236.google.com ([2607:f8b0:4003:c0f::236]:33545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRqp0-0004WR-AI for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 21:42:58 -0500 Received: by mail-ot0-x236.google.com with SMTP id h9so21353326oti.0 for ; Wed, 20 Dec 2017 18:42:58 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Robert Horn Cc: emacs-orgmode --001a113edae05b90100560d0a894 Content-Type: text/plain; charset="UTF-8" Sorry. I try to edit it in Emacs. but it is messed up by Gmail format. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Dec 21, 2017 at 10:40 AM, numbchild@gmail.com wrote: > Sorry > > [stardiviner] GPG key ID: 47C32433 > IRC(freeenode): stardiviner Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 > Blog: http://stardiviner.github.io/ > > On Thu, Dec 21, 2017 at 10:40 AM, numbchild@gmail.com > wrote: > >> I tried %%(org-anniversary 2016 12 21) Test anniversary. But this seems >> does not work. I tested with variable diary-file default value point to >> ~/.emacs.d/diary file. and has following content: >> >> %%(diary-anniversary 10 21 2016) my first child >> <%%(diary-anniversary 10 21 2016)> my first child >> %%(org-anniversary 2016 12 21) Test anniversary >> >> >> Then I try to change diary file to an org-mode file. Has following >> content: >> >> * Holiday >> >> %%(org-calendar-holiday) >> >> ** Valentine's Day >> >> <%%(diary-anniversary 2 14 2017)> >> >> >> * Birthday >> >> ** My Birthday >> >> <%%(diary-anniversary 3 24 1990)> I'm %d%s years old today!!! >> >> * Anniversary >> >> ** my first child anniversary >> >> <%%(diary-anniversary 10 26 2017)> >> >> >> >> Then org-agenda shows all headlines which has anniversary entry. Like: - >> Valentine's Day - My Birthday - my first child anniversary Without >> considering whether the anniversary date is a day past one year? (I think >> anniversary is by default repeat one year. Like org-mode timestamp repeat. >> <2017-12-21 Thu +1y>) I know there are other diary anniversary syntax like: >> - ~%%(diary-anniversary 3 24 2014)~ diary anniversary - ~%%(diary-cyclic 2 >> 7 26 2014)~ repeated diary. - ~%%(diary-block 7 26 2014 8 26 2020)~ diary >> block - ~%%(diary-float t 5 1)~ happens every 1st Friday of the month. I >> checked out them in Org-mode Info diary node. >> >> [stardiviner] GPG key ID: 47C32433 >> IRC(freeenode): stardiviner Twitter: @numbchild >> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 >> Blog: http://stardiviner.github.io/ >> >> On Wed, Dec 20, 2017 at 11:40 PM, Robert Horn >> wrote: >> >>> >>> stardiviner writes: >>> >>> > I have an org-mode file: >>> > >>> > #+begin_src org >>> > ,* Anniversary >>> > >>> > ,** my first child anniversary >>> > >>> > %%(diary-anniversary 10 26 2017) >>> > >>> > ,** Funeral Arrangement >>> > >>> > ,*** kk >>> > >>> > %%(diary-anniversary 12 8 2007) >>> > #+end_src >>> > >>> > How to include and show them in default org-agenda day view by >>> > configuring org-mode? >>> >>> Try org-anniversary. The line >>> >>> %%(org-anniversary 2016 12 20) Test anniversary >>> >>> Generates an anniversary in the agenda. In the default daily agenda it >>> is mixed in with the tasks and deadlines, so it may be easy to miss. >>> >>> Note the order of the date elements is year, month, day and all three >>> are needed. There is an option final element of type MARK what could be >>> used to adjust fonts and the like. >>> >>> R Horn >>> >> >> > --001a113edae05b90100560d0a894 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry. I try to edit it in Emacs. but it is messed up by G= mail format.

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 GPG key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA= 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/=

On Thu, Dec 21, 2017 at 10:40 AM, numbchild@gmail.com <= numbchild@gmail.co= m> wrote:
=
= Sorry

[stardivi= ner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack t= his world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(fr= eeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2= =A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B= 8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div>
On Thu, Dec 21= , 2017 at 10:40 AM, numbchild@gmail.com <numbchild@gmail.com> wrote:
=
I tried %%(org-anniversary 2016 12 21) Test anniversary. But this seems d= oes not work. I tested with variable diary-file default value point to ~/.emacs.d/diary= file. and has following content:
%%(diary-anniversary 10 21 2016) my first child
<%%(diary-anniversary 10 21 2016)> my first child
%%(org-anniversary 2016 12 21) Test anniversary
  
Then I try to change diary file to an org-mode file. Has following content:
* Holiday

%%(org-calendar-holiday)

** Valentine's Day

<%%(diary-anniversary 2 14 2017)>


* Birthday

** My Birthday

<%%(diary-anniversary 3 24 1990)> I'm %d%s years old today!!!

* Anniversary

** my first child anniversary

<%%(diary-anniversary 10 26 2017)>

  
Then org-agenda shows all headlines which has anniversary entry. Like: - Valentine's Day - My Birthday - my first child anniversary Without considering whether the anniversary date is a day past one year? (I think anniversary is by default repeat one year. Like org-mode timesta= mp repeat. <2017-12-21 Thu +1y>) I know there are other diary anniversary syntax like: - ~%%(diary-anniversary 3 24 2014)~ diary anniversary - ~%%(diary-cyclic 2 7 26 2014)~ repeated diary. - ~%%(diary-block 7 26 2014 8 26 2020)~ diary block - ~%%(diary-float t 5 1)~ happens every 1st Friday of the month. I checked out them in Org-mode Info diary node.

[stardiviner]= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this = world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeen= ode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @n= umbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8= E5 47C3 2433
Blog: http://stardiviner.github.io/
<= div>

On Wed, Dec 20, 2017 at 11:40 PM, Robert Hor= n <rjhorniii@gmail.com> wrote:

stardiviner writes:

> I have an org-mode file:
>
> #+begin_src org
> ,* Anniversary
>
> ,** my first child anniversary
>
> %%(diary-anniversary 10 26 2017)
>
> ,** Funeral Arrangement
>
> ,*** kk
>
> %%(diary-anniversary 12 8 2007)
> #+end_src
>
> How to include and show them in default org-agenda day view by
> configuring org-mode?

Try org-anniversary.=C2=A0 The line

%%(org-anniversary 2016 12 20) Test anniversary

Generates an anniversary in the agenda.=C2=A0 In the default daily agenda i= t
is mixed in with the tasks and deadlines, so it may be easy to miss.

Note the order of the date elements is year, month, day and all three
are needed.=C2=A0 There is an option final element of type MARK what could = be
used to adjust fonts and the like.

R Horn



--001a113edae05b90100560d0a894--