wakatime-mode
is an automatic time tracking extension for Emacs using WakaTime.
This patched fork of the original wakatime-mode includes support for line numbers.
Note: This fork is not available on MELPA.
-
Install wakatime-mode for Emacs using
package-vc-install
:package-vc-install https://github.com/grimsteel/wakatime-mode wakatime-mode
-
Download wakatime-cli to
~/.wakatime/
or somewhere in your$PATH
. (Orbrew install wakatime-cli
on Mac) -
Add
(global-wakatime-mode)
to yourinit.el
file, then restart Emacs. -
You will see a prompt asking for the path to wakatime-cli. Run
which wakatime-cli
and enter that path into the emacs prompt, then pressenter
. -
Enter your api key in your
init.el
or~/.wakatime.cfg
file (config file format). -
Use Emacs with wakatime-mode turned on and your time will be tracked for you automatically.
-
Visit http://wakatime.com to see your logged time.
Enable WakaTime for the current buffer by invoking M-x wakatime-mode
. If you wish to activate it globally, run M-x global-wakatime-mode
.
Set variable wakatime-api-key
to your API key.
Point wakatime-cli-path
to the absolute path of wakatime-cli.
To be sure heartbeats are getting sent, turn on debug mode by adding this line to your ~/.wakatime.cfg
file:
debug = true
Then run tail -f ~/.wakatime/wakatime.log
and make sure you see a 201 response code from the WakaTime API.