emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-mode and auto notifications?


From: Richard Riley
Subject: Re: [Orgmode] org-mode and auto notifications?
Date: Sun, 21 Sep 2008 18:55:43 +0200
User-agent: Emacs 22.2.1/No Gnus v0.11

Bastien <address@hidden> writes:

> address@hidden ([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)
`----

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]