all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* pop up buffer/text periodically in Emacs
@ 2010-04-28  2:29 Zhu Shenli
  2010-04-28 10:15 ` Tim Landscheidt
  0 siblings, 1 reply; 2+ messages in thread
From: Zhu Shenli @ 2010-04-28  2:29 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hi all, I want to pop up certain text periodically (e.g. once an hour) 
in Emacs. The text is about telling me to check email, drink water, etc.

Is there any elisp template? Thanks.

Best regards,
Shenli




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pop up buffer/text periodically in Emacs
  2010-04-28  2:29 pop up buffer/text periodically in Emacs Zhu Shenli
@ 2010-04-28 10:15 ` Tim Landscheidt
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Landscheidt @ 2010-04-28 10:15 UTC (permalink / raw)
  To: help-gnu-emacs

Zhu Shenli <zhushenli2@gmail.com> wrote:

> Hi all, I want to pop up certain text periodically (e.g.
> once an hour) in Emacs. The text is about telling me to
> check email, drink water, etc.

> Is there any elisp template? Thanks.

The easiest way provided you restart Emacs every day is
something along the lines of:

| (require 'appt)
| (appt-activate)
| (dotimes (hour 24)
|   (appt-add (format "%02d:00" hour) "Take a break!"))

Unfortunately, appt does not require you to acknowledge the
message so you might miss it if you don't pay attention.

Tim





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-28 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28  2:29 pop up buffer/text periodically in Emacs Zhu Shenli
2010-04-28 10:15 ` Tim Landscheidt

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.