From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Re: Idea for agenda notifications Date: Fri, 24 Apr 2009 14:54:52 -0500 Message-ID: <20090424195452.GS21189@thinkpad.adamsinfoserv.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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxRUF-0002Mo-VI for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 15:55:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxRUE-0002LG-9h for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 15:55:03 -0400 Received: from [199.232.76.173] (port=56589 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxRUD-0002Kz-T2 for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 15:55:01 -0400 Received: from squirtle.drak.net ([72.52.144.201]:34751) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LxRUD-0005AE-3O for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 15:55:01 -0400 Received: from [12.111.130.194] (helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1LxRTz-0003t3-Uv for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 14:54:49 -0500 Content-Disposition: inline In-Reply-To: <87ocumrl5n.fsf@gollum.intra.norang.ca> 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 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