This Emacs Lisp package provides streak-mode, a minor mode for tracking some
daily streak. Exercising? Learning a language? Track your success in your mode
line!
Instructions for Vanilla Emacs needed.
Note: this package requires at least Emacs 27.1
Place the following in your packages.el:
(package! streak
:recipe (:host github :repo "fosskers/streak"))And make sure to run doom sync -u. Then in your config.el:
(require 'streak)
(streak-mode)This will start streak-mode upon startup.
streak-mode will automatically initialize the “streak file” the first time it is
ran. Once you’ve started a streak, it will increment (in the mode line)
automatically day by day.
Otherwise, consider these functions for more manual control:
streak-reset: Reset your streak, with “now” as the new starting point.streak-increment: Increase your streak by 24 hours worth.streak-decrement: The opposite of the above.streak-update: Reread the streak file and manually update the mode line.