From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Org-Timer has nice popups; how can I use them elsewhere? Date: Mon, 23 Mar 2015 17:10:29 -0400 Message-ID: <87y4mnmncq.fsf@gmail.com> References: <87twxbfqvl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya9cJ-0003AP-0P for emacs-orgmode@gnu.org; Mon, 23 Mar 2015 17:10:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya9cG-00073f-0U for emacs-orgmode@gnu.org; Mon, 23 Mar 2015 17:10:34 -0400 Received: from mail-qg0-f48.google.com ([209.85.192.48]:34554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya9cF-00073N-Si for emacs-orgmode@gnu.org; Mon, 23 Mar 2015 17:10:31 -0400 Received: by qgep97 with SMTP id p97so36558934qge.1 for ; Mon, 23 Mar 2015 14:10:30 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Tory S. Anderson" Cc: orgmode list torys.anderson@gmail.com (Tory S. Anderson) wrote: > So, orgmode timers have a nice popup when they run out; on my KDE, > it's gentle GUI-box (not emacs) that nicely rises and falls. I would > love to have this as how my appt reminders work, instead of the ugly > minibuffer screeching; but looking through the org-timer code didn't > give me any ideas. How can I achieve this? org-timer uses org-notify for this (which is in org-clock.el). It seems that appointments, on the other hand, use appt.el. Specifically, appt-display-message is used to show the message. Perhaps you could set appt-disp-window-function to a function that uses org-notify. #+begin_src elisp (defun org-notify-display-appt (min-to-app new-time appt-msg) "Use `org-notify' to display an appointment. You can use this for `appt-disp-window-function'. `appt-display-format' should be set to 'window, and `appt-delete-window-function' should be a function that does nothing." ;; FIXME: Update the message to incorporate MIN-TO-APP. See ;; `appt-disp-window'. (org-notify appt-msg)) (setq appt-disp-window-function #'org-notify-display-appt) (setq appt-delete-window-function (lambda nil)) #+end_src This seems to work when using appt-display-message directly. #+begin_src elisp (appt-display-message "test" 1) #+end_src I think this should work with Org appointments, but I haven't tested it (and I don't use appointment reminders myself, so perhaps I'm missing something). In any case, hopefully that gives you somewhere to start. -- Kyle