An alarm clock for Emacs
Derived from wlemuel/alarm-clock.
- Emacs 24 or higher
- mpg123 (gnu/linux)
- terminal-notifier (macOS)
- notify-send (gnu/linux)
-
Get alarm-clock
- Manually download alarm-clock and set-up your load path.
-
To auto-start alarm-clock every time you open Emacs add these lines to your .emacs file:
(require 'alarm-clock)
Set an alarm clock with the time following tips. TIME can be "6"(6 seconds), "11 minutes", "10 hours", "11:40pm", etc. MESSAGE will be shown when notifying at setting time.
Display the alarm clock list.
Use a
to set a new alarm clock, d
or C-k
to delete current alarm
clock, g
to refresh the view, and space (' '
) to turn off
a ringing alarm (M-x alarm-clock-stop).
Turn off the currently ringing alarm.
Save alarm-clock to cache file.
Restore alarm-clock from cache file.
This fork of wlemuel/alarm-clock adds these features:
- Allow repeating the alarm clock sound multiple times, asynchornously, or until stopped via M-x alarm-clock-stop or by pressing the SPACE key in the alarm list window.
- Allow alarm-clock-list-view to work even if there are no alarms,
- Bind
i
and+
to alarm-clock-set - Bind
-
to alarm-clock-delete - Bind SPACE to stop alarm-clock-stop
- Show time remaining until the alarm fires in the alarm list view. Press
g
to refresh. - Aligned the header-line-format with content
- Sort alarms by increasing time (earliest first) in alarm-clock-list-view
- New customization variables in the
alarm-clock
group:alarm-clock-play-sound-repeat
: Number of times to repeat the sound when an alarm rings. Default is 1. Use M-x alarm-clock-stop to stop ringing the alarm.alarm-clock-play-auto-view-alarms
: If non-nil, display the alarm clock list when ringing an alarm, to allow using SPACE to run alarm-clock-stop
- Change alarm-clock-save to use find-file-noselect/save-buffer so that we have ~ backups of the save file
- Added alarm-clock--unexpired-alarms
- Renamed from alarm-clock--turn-autosave-?? to alarm-clock-turn-autosave-?? since they need not be internal function.
- Improved doc strings on alarm-clock-turn-autosave-on / alarm-clock-turn-autosave-off
-
Change cache file path by setting the variable
alarm-clock-cache-file
to any file path you like. -
Add these lines to your
.emacs
file:(alarm-clock--turn-autosave-on)
-
Meet
(wrong-type-argument package-desc nil)
on Mac OSX.-
Install
gnu-tar
.brew install gnu-tar
-
Try to set
quelpa-build-tar-executable
to the path ofgtar
, (e.g "/usr/local/bin/gtar"). -
Then reinstall this package.
-
I'd be glad to receive patches, comments and your considered criticism.
Have fun with alarm-clock!