From a39942ef1f3365d302a716e6970cb3dfd95fe0be Mon Sep 17 00:00:00 2001 From: "A. Chavali" Date: Fri, 20 Dec 2019 19:59:25 +0000 Subject: ~made wakatime a config package, not a module Wakatime is so easy to configure there's basically no point to it being a module. Thus, I ported it to the config. --- doom.d/config.org | 10 ++++++++-- doom.d/init.el | 1 - doom.d/packages.el | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/doom.d/config.org b/doom.d/config.org index b69aa8d..ca6b03d 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -160,9 +160,15 @@ A keybind and a routine ** Wakatime #+BEGIN_SRC elisp -(setq wakatime-api-key (shell-command-to-string "pass Keys/Wakatime")) +(use-package! wakatime-mode + :after-call pre-command-hook + :config + (setq wakatime-cli-path (expand-file-name "~/.local/bin/wakatime")) + (setq wakatime-api-key (replace-regexp-in-string "\n" "" (shell-command-to-string "pass Keys/Wakatime"))) + (global-wakatime-mode +1)) #+END_SRC -Using new password holder (pass) to help with secure transactions. +Using new password holder (pass) to help with secure transactions. Doing all +other stuff as well, cos Henrik may remove the Wakatime module. ** Elfeed #+BEGIN_SRC elisp (after! elfeed diff --git a/doom.d/init.el b/doom.d/init.el index 2dd4cb5..61fa915 100644 --- a/doom.d/init.el +++ b/doom.d/init.el @@ -93,7 +93,6 @@ ;;terraform ; infrastructure as code ;;tmux ; an API for interacting with tmux ;;upload ; map local to remote projects via ssh/ftp - wakatime :lang ;;agda ; types of types of types of types... diff --git a/doom.d/packages.el b/doom.d/packages.el index d02fb33..6c40806 100644 --- a/doom.d/packages.el +++ b/doom.d/packages.el @@ -8,6 +8,7 @@ ; General (package! elcord) ; to flex (package! wttrin) ; weather in emacs? yes please +(package! wakatime-mode) ; wakatime ; Coding (package! counsel-etags) ; tags are cool (package! py-yapf) ; formatting -- cgit v1.2.3-13-gbd6f