This repository has been archived on 2022-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
contrapunctus 6cb939d160 Update links 2021-05-11 00:01:07 +05:30
.dir-locals.el Add .dir-locals.el 2020-09-06 20:50:53 +05:30
.gitignore Add .gitignore 2020-06-28 18:17:06 +05:30
CHANGELOG.md Bump versions 2021-01-04 09:06:02 +05:30
Cask Bump versions 2021-01-04 09:06:02 +05:30
README.md Update links 2021-05-11 00:01:07 +05:30
TODO.org Add TODO file 2020-09-11 19:59:54 +05:30
UNLICENSE Add licenses, README, CHANGELOG, Cask file 2020-06-28 13:41:07 +05:30
WTFPL Add licenses, README, CHANGELOG, Cask file 2020-06-28 13:41:07 +05:30
chronometrist-goal.el Update links 2021-05-11 00:01:07 +05:30

README.md

chronometrist-goal

Adds support for time goals to Chronometrist

Installation

You can get chronometrist-goal from https://tildegit.org/contrapunctus/chronometrist-goal

chronometrist-goal requires alert.el and, of course, Chronometrist

Usage

First, hook chronometrist-goal to chronometrist -

(add-hook 'chronometrist-mode-hook 'chronometrist-goal-minor-mode)

Then, define some goals in chronometrist-goal-list

(setq chronometrist-goal-list
      '((60 "Programming")
        (30 "Writing" "Composing")
        (30 "Reading" "Music")))

The numbers stand for the minutes you want to set as the goal.

Observe that you can have any number of tasks after the goal - which is a way of saying you aim to spend that much time on any one of the tasks that follow. In the above example, we aim to spend 60 minutes on Programming, 30 minutes on either Writing or Composing, and 30 minutes on either Reading or Music.

Note - this variable may be subsumed into chronometrist, at an undefinite point in the future.

And you're all set! Run chronometrist again and marvel at your goal times displayed in the buffer.

With the default configuration, when you start tracking time, you will be notified when you

  • are five minutes away from the goal,
  • have reached the goal, and
  • have exceeded the goal by five minutes.

If a task doesn't have a goal, you will be reminded of the time you have spent on it, every fiften minutes.

Customization

See the Customize groups chronometrist for variables intended to be user-customizable.

Notification style

You may be interested in customizing alert.el too, especially alert-default-style - the author uses -

(setq alert-default-style 'libnotify)

Notification times

The custom variable chronometrist-goal-alert-functions is a list of functions which are run by chronometrist-goal-run-alert-timers. Each of these functions starts a timer, which notifies you at a certain time.

You can add or remove functions from this list to customize the times at which you are notified. The functions added to the list by default are tiny (7~9 lines) and (hopefully) easy for an interested user to base their own alert functions on.

More

A user desiring even greater control may define their own versions of chronometrist-goals-run-alert-timers and chronometrist-goals-stop-alert-timers (preferably using them as a template) and add them to the desired hooks.

Roadmap/Ideas

  • clear notifications on file change event
  • define types for custom variables
  • clock in -> go over the goal, get the 'exceeding' -> clock out, file changes, the exceed alert is shown again

Contributions and contact

Feedback and MRs very welcome. 🙂

If you have tried using chronometrist/chronometrist-goal, I'd love to hear your experiences! Get in touch with the author and other Emacs users in the Emacs channel on the Jabber network - xmpp:emacs@salas.suchat.org?join (web chat)

(For help in getting started with Jabber, click here)

License

I dream of a world where all software is liberated - transparent, trustable, and accessible for anyone to use or improve. But I don't want to make demands or threats (e.g. via legal conditions) to get there.

I'd rather make a request - please do everything you can to help that dream come true. Please Unlicense as much software as you can.

chronometrist-goal is released under your choice of Unlicense or the WTFPL.

(See files UNLICENSE and WTFPL).

Thanks

wasamasa, bpalmer, aidalgol, and the rest of #emacs for their tireless help and support