Home
Softono

Wakatime Mode

Open source Emacs Lisp
274
Stars
49
Forks
25
Issues
13
Watchers
2 months
Last Commit

 About Wakatime Mode

Emacs plugin for automatic time tracking and metrics generated from your programming activity.

Platforms

Web Self-hosted

Languages

Emacs Lisp

Need Help Installing Wakatime Mode?

We provide expert installation service for this software. Our team will install, configure, and secure Wakatime Mode on your server. plans start at just $30.

Wakatime Mode

View on GitHub

Emacs Minor Mode for WakaTime

wakatime-mode is an automatic time tracking extension for Emacs using WakaTime.

Installation

  1. Configure wakatime-mode in your init.el file using use-package (this automatically installs it from MELPA):

    (use-package wakatime-mode
      :ensure t
      :config
      (global-wakatime-mode 1))
    
  2. Restart Emacs. wakatime-mode will automatically download the latest wakatime-cli into ~/.wakatime/ on first launch, and check for updates at most every 4 hours. To use a specific binary instead, set wakatime-cli-path to its absolute path (or install wakatime-cli into your $PATH, e.g. brew install wakatime-cli on macOS).

  3. Enter your api key in your init.el or ~/.wakatime.cfg file (config file format).

  4. Use Emacs with wakatime-mode turned on and your time will be tracked for you automatically.

  5. Visit http://wakatime.com to see your logged time.

Screen Shots

Project Overview

Usage

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.

Configuration

Set variable wakatime-api-key to your API key.

By default wakatime-cli-path is nil, which tells wakatime-mode to look for an existing wakatime-cli on your $PATH and otherwise auto-download the latest wakatime-cli release into ~/.wakatime/. Set wakatime-cli-path to an absolute path to use a specific binary. Auto-update checks run at most every wakatime-update-check-interval seconds (4 hours by default).

Troubleshooting

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.