help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advising appt-mode


From: Fabrice Niessen
Subject: Re: Advising appt-mode
Date: Tue, 17 Nov 2009 11:18:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Richard,

Richard Riley wrote:
> Glenn Morris <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]