From 3f289eb82e6c0331547c3bb3fcbc5fbbee83ffe1 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 20 Apr 2020 09:28:23 -0400 Subject: [PATCH] Fix wakatime --- emacs/init.org | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index d7c6e59..ec081b8 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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