Org-mode mailing list
 help / color / Atom feed
From: Nick Dokos <>
To: Carsten Dominik <>
Cc: org-mode mailing list <>
Subject: automatic reminders in Emacs as pop ups [was: Re: Survey results ]
Date: Sun, 27 Jan 2008 17:11:08 -0500
Message-ID: <> (raw)
In-Reply-To: Message from Carsten Dominik <> of "Sun, 27 Jan 2008 22:22:46 +0100." <>

One answer to question 5 on the survey was another question: automatic
reminders in Emacs as pop ups?

Here is how I do it, using very little machinery. As part of org-mode
initialization, I add appointments from the diary to the agenda at
startup and I also make org-agenda-redo rescan the appt list:

(require 'appt)
(setq org-agenda-include-diary t)
(setq appt-time-msg-list nil)

(defadvice  org-agenda-redo (after org-agenda-redo-add-appts)
  "Pressing `r' on the agenda will also add appointments."
    (setq appt-time-msg-list nil)

(ad-activate 'org-agenda-redo)

I enable appt reminders, set the format to 'window and provide
a display function that calls a python program to do the popup:

  (appt-activate 1)
  (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)
    (call-process "/home/nick/bin/" nil 0 nil min-to-app msg new-time)))

Finally, the program is trivial:

#!/usr/bin/env python

""" Simple dialog popup example similar to the GTK+ Tutorials one """

import gtk
import sys

mins = sys.argv[1]
text = ' '.join(sys.argv[2:])
dialog = gtk.MessageDialog(None,
                           gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
                           gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
                           "Appt in %s mins: %s" % (mins, text))


  reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-27 21:22 Survey results Carsten Dominik
2008-01-27 22:11 ` Nick Dokos [this message]
2008-01-27 22:42   ` automatic reminders in Emacs as pop ups [was: Re: Survey results ] Piotr Zielinski
2008-01-27 23:05 ` Survey results Leo
2008-01-27 23:21   ` Bastien Guerry

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:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Org-mode mailing list

Archives are clonable:
	git clone --mirror list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ \
	public-inbox-index list

Example config snippet for mirrors

Newsgroups are available over NNTP:

AGPL code for this site: git clone