From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: alarm clocks and timers in Emacs?
Date: Sun, 2 Apr 2017 21:14:06 +0200 [thread overview]
Message-ID: <20170402191406.GA31851@tuxteam.de> (raw)
In-Reply-To: <87wpb3ktu6.fsf@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, Apr 02, 2017 at 10:05:37AM +0000, Devin Prater wrote:
> Hi all. Does anyone know if there are any kinds of alarm clocks or
> timers in Emacs, or in Elpa or Melpa? Just one of those things I’d like
> to have in my… Desktop.
See the entries timers [1] and idle timers [2] in the Emacs Lisp manual.
Basically, you call
(run-at-time "12:00" my-function)
for calling my-function at an absolute time, or
(run-at-time "1 min" my-function)
to call my-function a minute from now. Repeats can be specified, etc.
The "idle" variants are for when you want to specify that Emacs be idle
for that long to actually call your function.
See the docs for the gories. Or ask here for more specifics.
[1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Timers.html#Timers
[2] https://www.gnu.org/software/emacs/manual/html_node/elisp/Idle-Timers.html#Idle-Timers
regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAljhTX4ACgkQBcgs9XrR2kZgsQCfW2rICR/IXITE/y4RHXYgUmcH
izYAn05Q4ADHWyZjrTkuGi5JwNIYOxSm
=Yr3f
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2017-04-02 19:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-02 10:05 alarm clocks and timers in Emacs? Devin Prater
2017-04-02 16:10 ` David Mann
2017-04-02 13:28 ` Devin Prater
2017-04-02 21:40 ` Bob Newell
2017-04-02 19:14 ` tomas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170402191406.GA31851@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.