ferfebles / redtick

Smallest emacs pomodoro timer (1 char)
34 stars 4 forks source link

Add {before,after}-{work,rest} hooks #3

Closed czan closed 7 years ago

czan commented 7 years ago

The sound playing code has been reworked to use the hooks instead of having sound-related code embedded in the main loop. Similarly, saving of history is now done in the after-rest-hook.

Using hooks makes it much easier to do thinks when the redtick state transitions. This resolves #2.

ferfebles commented 7 years ago

Thanks for your pull request @czan, your code makes this little project easier to expand.

Please, excuse me for taking so long to merge your commit.