Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WakaTime init.el file error #36

Open
Vitao18 opened this issue Sep 2, 2018 · 1 comment
Open

WakaTime init.el file error #36

Vitao18 opened this issue Sep 2, 2018 · 1 comment

Comments

@Vitao18
Copy link

Vitao18 commented Sep 2, 2018

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)
@thomasf
Copy link
Contributor

thomasf commented Sep 6, 2018

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants