wakatime-mode icon indicating copy to clipboard operation
wakatime-mode copied to clipboard

WakaTime init.el file error

Open Vitao18 opened this issue 5 years ago • 1 comments

I'm new to Emacs and I'm trying to configure Wakatime in my init.el file. I've followed the tutorial and installed both wakatime-cli and wakatime-mode, but I'm currently getting this error at Emacs buffer when starting Emacs:


Symbol's function definition is void: wakatime-api-key

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

Here's my init.el file:

;; Wakatime
(wakatime-api-key "70b484c2-74d0-4ab0-9510-cd425f08f7e3")
(wakatime-cli-path "~/usr/local/bin/wakatime")
(global-wakatime-mode)

Vitao18 avatar Sep 02 '18 22:09 Vitao18

you need to set the variables.

The first argument in an s-expression (...) should be a callable there in so (wakatime-api-key "70b484c2-74d0-4ab0-9510-cd425f08f7e3") means that you are trying to call the function wakatime-api-key with the argument 70..... What you want to do is set the varibles instead (setq wakatime-api-key "70b484c2-74d0-4ab0-9510-cd425f08f7e3")

thomasf avatar Sep 06 '18 21:09 thomasf