all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Fabrice Niessen" <fgdmjuzqrjgh-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: Advising appt-mode
Date: Tue, 17 Nov 2009 11:18:45 +0100	[thread overview]
Message-ID: <87bpj1xxmi.fsf@mundaneum.com> (raw)
In-Reply-To: mailman.10870.1258438170.2239.help-gnu-emacs@gnu.org

Hi Richard,

Richard Riley wrote:
> Glenn Morris <rgm+news-FGKo4X94FMn2fBVCVOL8/A@public.gmane.org> writes:
>
>> Richard Lewis wrote:
>>
>>> I'm trying to make appt-mode display popup messages on my desktop
>>> (using a small wrapper function for libnotify) by advising the
>>> appt-check function like this:
>>
>> No need to advise anything. Customize appt-disp-window-function (the
>> name is a little misleading) to a function of your choice.
>>
>
> I dont know if this still works but it might help:-
>
> http://www.emacswiki.org/emacs-en/OrgMode-OSD

The following works perfectly for me...

--8<---------------cut here---------------start------------->8---
    (when window-system
      (setq appt-display-format 'window)

      ;; FIXME Check `notify-send' (in `libnotify-bin' Ubuntu package) is installed
      (defun rgr/org-display (min-to-app new-time msg)
        (shell-command
         (concat "notify-send "
                 "-i /usr/share/icons/gnome/32x32/status/appointment-soon.png "
                 "'Appointment' "
                 "'" msg "'")))
      ;; TODO For Windows users: use todochicku.el and the snarl notifier

      (setq appt-disp-window-function (function rgr/org-display)))
--8<---------------cut here---------------end--------------->8---

Best regards,
  Fabrice

-- 
Fabrice Niessen
Search the Web with "My Google Search Tools" on http://www.MyGooglest.com


  parent reply	other threads:[~2009-11-17 10:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-13 13:19 Advising appt-mode Richard Lewis
2009-11-15 19:06 ` Michael Heerdegen
2009-11-17  4:51 ` Glenn Morris
2009-11-17  6:08   ` Richard Riley
     [not found]   ` <mailman.10870.1258438170.2239.help-gnu-emacs@gnu.org>
2009-11-17 10:18     ` Fabrice Niessen [this message]
2009-11-18 12:27   ` Richard Lewis

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=87bpj1xxmi.fsf@mundaneum.com \
    --to=fgdmjuzqrjgh-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.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.