From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: org-mode and auto notifications? Date: Sun, 21 Sep 2008 18:55:43 +0200 Message-ID: References: <871vzdzyjd.fsf@gmail.com> <873ajtg8et.fsf@gnu.org> 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 1KhSF1-0003kc-BZ for emacs-orgmode@gnu.org; Sun, 21 Sep 2008 12:56:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhSEz-0003ii-BL for emacs-orgmode@gnu.org; Sun, 21 Sep 2008 12:56:58 -0400 Received: from [199.232.76.173] (port=49368 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhSEz-0003iV-5P for emacs-orgmode@gnu.org; Sun, 21 Sep 2008 12:56:57 -0400 Received: from fk-out-0910.google.com ([209.85.128.184]:65526) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KhSEy-0000zO-Iz for emacs-orgmode@gnu.org; Sun, 21 Sep 2008 12:56:57 -0400 Received: by fk-out-0910.google.com with SMTP id 18so1282098fkq.10 for ; Sun, 21 Sep 2008 09:56:53 -0700 (PDT) In-Reply-To: <873ajtg8et.fsf@gnu.org> (Bastien's message of "Sun, 21 Sep 2008 11:22:50 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > public.avatar@gmail.com ([AvataR]) writes: > >> Is there any way to make visual (OSD/whatelse) notifications about >> upcoming events present in my .org lists? > > You might want to use the appt-* functions all together with > `org-agenda-to-appt' (which see). > > This page also contains a few hints: > > http://orgmode.org/worg/org-hacks.php > > HTH, I think the modified code here is working fine for emacs 22 : I removed the run at 24:01 since the run-at-time without a time runs it then and there and then every delta seconds. ,---- | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ; For org appointment reminders | | ; 5 minute warnings | (setq appt-message-warning-time '15) | (setq appt-display-interval '15) | | ; Update appt each time agenda opened. | (add-hook 'org-finalize-agenda-hook '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/zenity --info --title='Appointment' --text='" msg "' &" | ; "/usr/bin/gnome-osd-client " msg | ) nil nil) | )) | | ;; Run once, activate and schedule refresh | (run-at-time nil 3600 'org-agenda-to-appt) | (appt-activate t) | | (require 'diary-lib) | (add-hook 'diary-display-hook 'fancy-diary-display) `---- --