Fix wakatime
This commit is contained in:
parent
51cd3f7401
commit
3f289eb82e
@ -4091,17 +4091,11 @@ Add a w3m filter to handle the code block delimiters:
|
||||
|
||||
It needs a helper script to work properly.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq wakatime-path
|
||||
(if (file-exists-p "/usr/local/bin/wakatime")
|
||||
"/usr/local/bin/wakatime"
|
||||
(when (file-exists-p "/usr/bin/wakatime")
|
||||
"/usr/bin/wakatime")))
|
||||
|
||||
(use-package wakatime-mode
|
||||
:if wakatime-path
|
||||
:if (executable-find "wakatime")
|
||||
:init
|
||||
(setq wakatime-api-key (password-store-get "wakatime-api-key")
|
||||
wakatime-cli-path wakatime-path)
|
||||
wakatime-cli-path (executable-find "wakatime"))
|
||||
:config
|
||||
(global-wakatime-mode))
|
||||
#+END_SRC
|
||||
|
Loading…
Reference in New Issue
Block a user