* Org-Timer has nice popups; how can I use them elsewhere?
@ 2015-03-23 19:36 Tory S. Anderson
2015-03-23 21:10 ` Kyle Meyer
2015-03-24 7:11 ` Bernhard Pröll
0 siblings, 2 replies; 3+ messages in thread
From: Tory S. Anderson @ 2015-03-23 19:36 UTC (permalink / raw)
To: orgmode list
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Org-Timer has nice popups; how can I use them elsewhere?
2015-03-23 19:36 Org-Timer has nice popups; how can I use them elsewhere? Tory S. Anderson
@ 2015-03-23 21:10 ` Kyle Meyer
2015-03-24 7:11 ` Bernhard Pröll
1 sibling, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2015-03-23 21:10 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Org-Timer has nice popups; how can I use them elsewhere?
2015-03-23 19:36 Org-Timer has nice popups; how can I use them elsewhere? Tory S. Anderson
2015-03-23 21:10 ` Kyle Meyer
@ 2015-03-24 7:11 ` Bernhard Pröll
1 sibling, 0 replies; 3+ messages in thread
From: Bernhard Pröll @ 2015-03-24 7:11 UTC (permalink / raw)
To: emacs-orgmode
This blogpost demonstrates the usage of org-agenda-to-appt:
http://emacs-fu.blogspot.co.at/2009/11/showing-pop-ups.html
Instead of a sound I call notify-send for example.
"Tory S. Anderson" <torys.anderson@gmail.com> schrieb am Mon, 23. Mar 15:36:
>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?
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-24 7:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23 19:36 Org-Timer has nice popups; how can I use them elsewhere? Tory S. Anderson
2015-03-23 21:10 ` Kyle Meyer
2015-03-24 7:11 ` Bernhard Pröll
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.