From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: Re: Idea for agenda notifications
Date: Fri, 24 Apr 2009 14:54:52 -0500 [thread overview]
Message-ID: <20090424195452.GS21189@thinkpad.adamsinfoserv.com> (raw)
In-Reply-To: <87ocumrl5n.fsf@gollum.intra.norang.ca>
I have emacs w/ org running at all times, and I use a hook with
kdialog to make popup notifications when appointments are due.
I adapted this from someone else's post on using Zenity, I wish I
remembered who so I could credit them.
Here is a snippet from my .emacs:
----------------------------------------------------------------------
;; 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)))
(my-org-agenda-to-appt)
(appt-activate t)
(run-at-time "24:01" nil 'my-org-agenda-to-appt)
;; 5 minute warning
(setq appt-message-warning-time '60)
(setq appt-display-interval '15)
;; 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/kdialog --msgbox '" msg "' &") nil nil)))
))
----------------------------------------------------------------------
Enjoy!
On Fri, Apr 24, 2009 at 01:55:48PM -0400, Bernt Hansen wrote:
> Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
>
> > By the way, how can I use the org-agenda-to-appt? When I run it a
> > message saying "No event to add" is returned -- I do have some
> > scheduled events on my gtd.org file and this file is part of the
> > org-agenda-files list.
>
> As I understand it org-agenda-to-appt picks up tasks from your
> org-agenda-files that have an active timestamp for today. If you have a
> scheduled, deadline, or active timestamp for 12:00 it will create
> reminders in the remind package for those and let remind handle them.
>
> I don't use dates/times in headlines so I don't know if it works for
> that case.
>
> For my setup remind starts bugging me 12 minutes before the appointment.
>
> -Bernt
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
next prev parent reply other threads:[~2009-04-24 19:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-24 17:02 Idea for agenda notifications Marcelo de Moraes Serpa
2009-04-24 17:14 ` Friedrich Delgado Friedrichs
2009-04-24 17:17 ` Bernt Hansen
2009-04-24 17:28 ` Marcelo de Moraes Serpa
2009-04-24 17:35 ` Marcelo de Moraes Serpa
2009-04-24 17:55 ` Bernt Hansen
2009-04-24 19:54 ` Russell Adams [this message]
2009-04-24 23:37 ` Marcelo de Moraes Serpa
2009-04-27 17:27 ` Eric S Fraga
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090424195452.GS21189@thinkpad.adamsinfoserv.com \
--to=rladams@adamsinfoserv.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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).