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.
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 ()(let ((org-deadline-warning-days 0)) ;; will be automatic in org 5.23
(interactive)
(setq appt-time-msg-list nil)
(org-agenda-to-appt)));; 5 minute warning
(my-org-agenda-to-appt)
(appt-activate t)
(run-at-time "24:01" nil 'my-org-agenda-to-appt)
(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 <celoserpa@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 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