This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+web-services/wakatime
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
..
img
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org Fix doc for cscope, geolocation, wakatime, prodigy and smex layer 2017-12-27 20:20:32 +02:00

Wakatime layer

/TakeV/spacemacs/media/commit/862e81e49aefd6689e9d92a150212ac46ec66e99/layers/+web-services/wakatime/img/wakatime.png

Description

This layer adds support for Wakatime.

WakaTime was built to solve time tracking for programmers. Since we work inside a text editor, why should we have to start and stop a timer? WakaTime uses open-source text editor plugins to automatically track the time you spend programming so you never have to manually track it again!

P.S. wakati means time in Swahili

Features:

  • Integration with Wakatime cloud based time tracking service

Install

Wakatime Program

You can follow wakatime installation instructions here https://github.com/wakatime/wakatime-mode.

In short it's just:

pip install wakatime

And for some linux users

sudo pip install wakatime

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add wakatime to the existing dotspacemacs-configuration-layers list in this file.

Example:

  (setq-default dotspacemacs-configuration-layers
                '(
                  ;; ...
                  (wakatime :variables
                  wakatime-api-key  "your-api-key"
                  ;; use the actual wakatime path
                  wakatime-cli-path "/usr/bin/wakatime")
                  ;; ...
                 ))

API Keys

After this go to your wakatime account and have your API key handy https://wakatime.com/settings/account?apikey=true .

Restart emacs and it will prompt you for the location of the wakatime installer (just put in whatever which wakatime gives you in the terminal e.g. /usr/bin/wakatime for example) and that's it.

Note to venv-workon users:

Right now wakatime uses python as python bin executable, so if you use venv-workon because you have python projects which need to have a virtual env., then wakatime, which is installed system-wide will have trouble locating wakatime files, so it's best to define by yourself the python path where wakatime can always find it's stuff, via this variable:

(setq wakatime-python-bin "/path/to/python")