From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Re: Idea for agenda notifications Date: Fri, 24 Apr 2009 18:37:33 -0500 Message-ID: <1e5bcefd0904241637o37471c44n2bf1e4f769fe600d@mail.gmail.com> References: <1e5bcefd0904241002p7ad213acg8a37853b4bedddfe@mail.gmail.com> <87bpqmt1ij.fsf@gollum.intra.norang.ca> <1e5bcefd0904241028h40057611j7a29925226555117@mail.gmail.com> <1e5bcefd0904241035i6d3422a1hf0f1546e27986640@mail.gmail.com> <87ocumrl5n.fsf@gollum.intra.norang.ca> <20090424195452.GS21189@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1988021498==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxUxg-0000OR-A0 for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 19:37:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxUxb-0000Nd-Ej for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 19:37:39 -0400 Received: from [199.232.76.173] (port=42907 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxUxb-0000NX-8t for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 19:37:35 -0400 Received: from an-out-0708.google.com ([209.85.132.244]:8684) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxUxa-0004WV-Km for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 19:37:35 -0400 Received: by an-out-0708.google.com with SMTP id b38so915735ana.21 for ; Fri, 24 Apr 2009 16:37:33 -0700 (PDT) In-Reply-To: <20090424195452.GS21189@thinkpad.adamsinfoserv.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1988021498== Content-Type: multipart/alternative; boundary=0016368e1d1a16d6fe0468557bd5 --0016368e1d1a16d6fe0468557bd5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Awesome! This idea could be extended to add other kind of events, like send emails, SMS, play some audio file, whatever (turn org-mode in a kind of PIM server too.. hmm, lots of cool ideas come to my mind). I still prefer using the gnome-notifier but it shouldn't be hard to adapt it for that. Well -- the first thing I need to do though is to master elisp :) Thanks! Marcelo. On Fri, Apr 24, 2009 at 2:54 PM, Russell Adams wrote: > I have emacs w/ org running at all times, and I use a hook with > kdialog to make popup notifications when appointments are due. > > I adapted this from someone else's post on using Zenity, I wish I > remembered who so I could credit them. > > Here is a snippet from my .emacs: > > ---------------------------------------------------------------------- > ;; For org appointment reminders > > ;; Get appointments for today > (defun my-org-agenda-to-appt () > (interactive) > (setq appt-time-msg-list nil) > (let ((org-deadline-warning-days 0)) ;; will be automatic in org > 5.23 > (org-agenda-to-appt))) > > (my-org-agenda-to-appt) > (appt-activate t) > (run-at-time "24:01" nil 'my-org-agenda-to-appt) > > ;; 5 minute warning > (setq appt-message-warning-time '60) > (setq appt-display-interval '15) > > ;; Update appt each time agenda opened. > (add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt) > > ;; Setup zenify, we tell appt to use window, and replace default function > (setq appt-display-format 'window) > (setq appt-disp-window-function (function my-appt-disp-window)) > > (defun my-appt-disp-window (min-to-app new-time msg) > (save-window-excursion (shell-command (concat > "/usr/bin/kdialog --msgbox '" msg "' &") nil nil))) > )) > ---------------------------------------------------------------------- > > Enjoy! > > On Fri, Apr 24, 2009 at 01:55:48PM -0400, Bernt Hansen wrote: > > Marcelo de Moraes Serpa writes: > > > > > By the way, how can I use the org-agenda-to-appt? When I run it a > > > message saying "No event to add" is returned -- I do have some > > > scheduled events on my gtd.org file and this file is part of the > > > org-agenda-files list. > > > > As I understand it org-agenda-to-appt picks up tasks from your > > org-agenda-files that have an active timestamp for today. If you have a > > scheduled, deadline, or active timestamp for 12:00 it will create > > reminders in the remind package for those and let remind handle them. > > > > I don't use dates/times in headlines so I don't know if it works for > > that case. > > > > For my setup remind starts bugging me 12 minutes before the appointment. > > > > -Bernt > > > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Remember: use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016368e1d1a16d6fe0468557bd5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Awesome! This idea could be extended to add other kind of events, like send= emails, SMS, play some audio file, whatever (turn org-mode in a kind of PI= M server too.. hmm, lots of cool ideas come to my mind). I still prefer usi= ng the gnome-notifier but it shouldn't be hard to adapt it for that.
Well -- the first thing I need to do though is to master elisp :)
Thanks!

Marcelo.

On Fri, Apr 24,= 2009 at 2:54 PM, Russell Adams <RLAdams@adamsinfoserv.com> wrote:
I have emacs w/ o= rg running at all times, and I use a hook with
kdialog to make popup notifications when appointments are due.

I adapted this from someone else's post on using Zenity, I wish I
remembered who so I could credit them.

Here is a snippet from my .emacs:

----------------------------------------------------------------------
;; For org appointment reminders

;; Get appointments for today
(defun my-org-agenda-to-appt ()
=A0 =A0 =A0 =A0(interactive)
=A0 =A0 =A0 =A0(setq appt-time-msg-list nil)
=A0 =A0 =A0 =A0(let ((org-deadline-warning-days 0)) =A0 =A0;; will b= e automatic in org =A05.23
=A0 =A0 =A0 =A0 =A0(org-agenda-to-appt)))

(my-org-agenda-to-appt)
(appt-activate t)
(run-at-time "24:01" nil 'my-org-agenda-to-appt)

;; 5 minute warning
(setq appt-message-warning-time '60)
(setq appt-display-interval '15)

;; Update appt each time agenda opened.
(add-hook 'org-finalize-agenda-hook 'my-org-agend= a-to-appt)

;; Setup zenify, we tell appt to use window, and replace default func= tion
(setq appt-display-format 'window)
(setq appt-disp-window-function (function my-appt-disp-window))

(defun my-appt-disp-window (min-to-app new-time msg)
=A0 =A0 =A0 =A0(save-window-excursion (shell-command (concat
=A0 =A0 =A0"/usr/bin/kdialog --msgbox '" msg "' &am= p;") nil nil)))
))
----------------------------------------------------------------------

Enjoy!

On Fri, Apr 24, 2009 at 01:55:48PM -0400, Bernt Hansen wrote:
> Marcelo de Moraes Serpa <cel= oserpa@gmail.com> writes:
>
> > By the way, how can I use the org-agenda-to-appt? When I run it a=
> > message saying "No event to add" is returned -- I do ha= ve some
> > scheduled events on my gtd.org file and this file is part of the
> > org-agenda-files list.
>
> As I understand it org-agenda-to-appt picks up tasks from your
> org-agenda-files that have an active timestamp for today. =A0If you ha= ve a
> scheduled, deadline, or active timestamp for 12:00 it will create
> reminders in the remind package for those and let remind handle them.<= br> >
> I don't use dates/times in headlines so I don't know if it wor= ks for
> that case.
>
> For my setup remind starts bugging me 12 minutes before the appointmen= t.
>
> -Bernt
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


------------------------------------------------------------------
Russell Adams =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0RLAdam= s@AdamsInfoServ.com

PGP Key ID: =A0 =A0 0x1160DCB3 =A0 =A0 =A0 =A0 =A0 http://www.adamsinfoserv.com/

Fingerprint: =A0 =A01723 D8CA 4280 1EC9 557F =A066E8 1154 E018 1160 DCB3

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016368e1d1a16d6fe0468557bd5-- --===============1988021498== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1988021498==--