[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: org-mode and appointments
From: |
Russell Adams |
Subject: |
Re: [Orgmode] Re: org-mode and appointments |
Date: |
Sun, 2 Mar 2008 04:13:46 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Ok, so I've got appt working with org, along with Gnome popups with
zenity to alert me of events.
I wanted to aggregate the advice I'd received into one place, which
could be posted later to wiki or worg, etc.
I would welcome feedback, as I'm currently vetting this
configuration. I'll post any updates if I find a problem.
Thanks.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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)))
;; Run once, activate and schedule refresh
(my-org-agenda-to-appt)
(appt-activate t)
(run-at-time "24:01" nil 'my-org-agenda-to-appt)
; 5 minute warnings
(setq appt-message-warning-time '15)
(setq appt-display-interval '5)
; 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/zenity --info --title='Appointment' --text='"
msg
"' &"
) nil nil)
))
------------------------------------------------------------------
Russell Adams address@hidden
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
signature.asc
Description: Digital signature
- Re: [Orgmode] Re: org-mode and appointments,
Russell Adams <=