From: Richard G Riley <rileyrgdev@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Re: org-mode and appointments
Date: Sun, 02 Mar 2008 18:51:42 +0100 [thread overview]
Message-ID: <ftk5klm2tt.fsf@richardriley.net> (raw)
In-Reply-To: <20080302101346.GB18852@odin.demosthenes.org> (Russell Adams's message of "Sun, 2 Mar 2008 04:13:46 -0600")
Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
v> 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)
> ))
I just tried it. Excellent.
BTW, one small problem - when I updated a schedule in the agenda
interface, the agenda file doesn't update in the buffer. Closing it and
reopening it showed the new time.
next prev parent reply other threads:[~2008-03-02 17:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-25 23:09 org-mode and appointments Bernt Hansen
2008-02-26 16:06 ` Carsten Dominik
2008-02-26 16:09 ` Carsten Dominik
2008-02-26 16:14 ` Bernt Hansen
2008-02-27 1:01 ` Russell Adams
2008-02-28 0:55 ` Russell Adams
2008-02-28 1:04 ` Bernt Hansen
2008-02-28 1:06 ` Bernt Hansen
2008-02-28 22:38 ` Russell Adams
2008-02-28 23:17 ` Nick Dokos
2008-03-02 10:13 ` Russell Adams
2008-03-02 17:51 ` Richard G Riley [this message]
2008-03-02 19:33 ` Russell Adams
2008-03-03 1:31 ` Bastien
2008-02-26 16:19 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ftk5klm2tt.fsf@richardriley.net \
--to=rileyrgdev@googlemail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.