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.
|
It needs a helper script to work properly.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+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
|
(use-package wakatime-mode
|
||||||
:if wakatime-path
|
:if (executable-find "wakatime")
|
||||||
:init
|
:init
|
||||||
(setq wakatime-api-key (password-store-get "wakatime-api-key")
|
(setq wakatime-api-key (password-store-get "wakatime-api-key")
|
||||||
wakatime-cli-path wakatime-path)
|
wakatime-cli-path (executable-find "wakatime"))
|
||||||
:config
|
:config
|
||||||
(global-wakatime-mode))
|
(global-wakatime-mode))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Loading…
Reference in New Issue
Block a user