* Survey results
@ 2008-01-27 21:22 Carsten Dominik
2008-01-27 22:11 ` automatic reminders in Emacs as pop ups [was: Re: Survey results ] Nick Dokos
2008-01-27 23:05 ` Survey results Leo
0 siblings, 2 replies; 5+ messages in thread
From: Carsten Dominik @ 2008-01-27 21:22 UTC (permalink / raw)
To: org-mode mailing list
Hi,
you might remember that in November, Charles Cave organized a survey
among Org-mode users in November. The results of this survey can be
found at
http://orgmode.org/survey.html.
Thanks to Charles! There is some really interesting stuff in this,
in particular in the answers to question 5.
- Carsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* automatic reminders in Emacs as pop ups [was: Re: Survey results ]
2008-01-27 21:22 Survey results Carsten Dominik
@ 2008-01-27 22:11 ` Nick Dokos
2008-01-27 22:42 ` Piotr Zielinski
2008-01-27 23:05 ` Survey results Leo
1 sibling, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2008-01-27 22:11 UTC (permalink / raw)
To: Carsten Dominik; +Cc: org-mode mailing list
One answer to question 5 on the survey was another question: automatic
reminders in Emacs as pop ups?
Here is how I do it, using very little machinery. As part of org-mode
initialization, I add appointments from the diary to the agenda at
startup and I also make org-agenda-redo rescan the appt list:
-----------------------------------
(require 'appt)
(setq org-agenda-include-diary t)
(setq appt-time-msg-list nil)
(org-agenda-to-appt)
(defadvice org-agenda-redo (after org-agenda-redo-add-appts)
"Pressing `r' on the agenda will also add appointments."
(progn
(setq appt-time-msg-list nil)
(org-agenda-to-appt)))
(ad-activate 'org-agenda-redo)
-----------------------------------
I enable appt reminders, set the format to 'window and provide
a display function that calls a python program to do the popup:
-----------------------------------
(progn
(appt-activate 1)
(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)
(call-process "/home/nick/bin/popup.py" nil 0 nil min-to-app msg new-time)))
-----------------------------------
Finally, the popup.py program is trivial:
-----------------------------------
#!/usr/bin/env python
""" Simple dialog popup example similar to the GTK+ Tutorials one """
import gtk
import sys
mins = sys.argv[1]
text = ' '.join(sys.argv[2:])
dialog = gtk.MessageDialog(None,
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
"Appt in %s mins: %s" % (mins, text))
dialog.run()
dialog.destroy()
-----------------------------------
HTH,
Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: automatic reminders in Emacs as pop ups [was: Re: Survey results ]
2008-01-27 22:11 ` automatic reminders in Emacs as pop ups [was: Re: Survey results ] Nick Dokos
@ 2008-01-27 22:42 ` Piotr Zielinski
0 siblings, 0 replies; 5+ messages in thread
From: Piotr Zielinski @ 2008-01-27 22:42 UTC (permalink / raw)
To: nicholas.dokos; +Cc: org-mode mailing list, Carsten Dominik
Also, debian/ubuntu package libnotify-bin contains a command-line
utility "notify-send" that you can use to display non-modal user
notifications, in the same way as popup.py.
Piotr
On Jan 27, 2008 10:11 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> One answer to question 5 on the survey was another question: automatic
> reminders in Emacs as pop ups?
>
> Here is how I do it, using very little machinery. As part of org-mode
> initialization, I add appointments from the diary to the agenda at
> startup and I also make org-agenda-redo rescan the appt list:
>
> -----------------------------------
> (require 'appt)
> (setq org-agenda-include-diary t)
> (setq appt-time-msg-list nil)
> (org-agenda-to-appt)
>
> (defadvice org-agenda-redo (after org-agenda-redo-add-appts)
> "Pressing `r' on the agenda will also add appointments."
> (progn
> (setq appt-time-msg-list nil)
> (org-agenda-to-appt)))
>
> (ad-activate 'org-agenda-redo)
> -----------------------------------
>
> I enable appt reminders, set the format to 'window and provide
> a display function that calls a python program to do the popup:
>
> -----------------------------------
> (progn
> (appt-activate 1)
> (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)
> (call-process "/home/nick/bin/popup.py" nil 0 nil min-to-app msg new-time)))
> -----------------------------------
>
> Finally, the popup.py program is trivial:
>
> -----------------------------------
> #!/usr/bin/env python
>
> """ Simple dialog popup example similar to the GTK+ Tutorials one """
>
> import gtk
> import sys
>
> mins = sys.argv[1]
> text = ' '.join(sys.argv[2:])
> dialog = gtk.MessageDialog(None,
> gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
> gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
> "Appt in %s mins: %s" % (mins, text))
> dialog.run()
> dialog.destroy()
> -----------------------------------
>
> HTH,
> Nick
>
>
> _______________________________________________
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Survey results
2008-01-27 21:22 Survey results Carsten Dominik
2008-01-27 22:11 ` automatic reminders in Emacs as pop ups [was: Re: Survey results ] Nick Dokos
@ 2008-01-27 23:05 ` Leo
2008-01-27 23:21 ` Bastien Guerry
1 sibling, 1 reply; 5+ messages in thread
From: Leo @ 2008-01-27 23:05 UTC (permalink / raw)
To: emacs-orgmode
On 2008-01-27 21:22 +0000, Carsten Dominik wrote:
> Hi,
>
> you might remember that in November, Charles Cave organized a survey
> among Org-mode users in November. The results of this survey can be
> found at
> http://orgmode.org/survey.html.
>
> Thanks to Charles! There is some really interesting stuff in this,
> in particular in the answers to question 5.
>
> - Carsten
It is interesting to see the number of Xemacs users is small.
--
.: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :.
Use the best OS -- http://www.fedoraproject.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: Survey results
2008-01-27 23:05 ` Survey results Leo
@ 2008-01-27 23:21 ` Bastien Guerry
0 siblings, 0 replies; 5+ messages in thread
From: Bastien Guerry @ 2008-01-27 23:21 UTC (permalink / raw)
To: emacs-orgmode
Leo <sdl.web@gmail.com> writes:
> It is interesting to see the number of Xemacs users is small.
Being included in GNU Emacs surely helps. But note that "keeping XEmacs
compatibility" is also mentionned in the 5th section.
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-27 23:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-27 21:22 Survey results Carsten Dominik
2008-01-27 22:11 ` automatic reminders in Emacs as pop ups [was: Re: Survey results ] Nick Dokos
2008-01-27 22:42 ` Piotr Zielinski
2008-01-27 23:05 ` Survey results Leo
2008-01-27 23:21 ` Bastien Guerry
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.