~Internal -> Package config, defer wakatime to pre-command-hook

~Package config is more fitting a name
~Wakatime should be deferred till after the first command is run
This commit is contained in:
AChavali
2020-01-05 22:49:54 +00:00
parent fd0c0c4361
commit 264de06b96

View File

@@ -37,7 +37,7 @@ Some quality of life things and others that I couldn't really put in one categor
- Add libgen to search providers - Add libgen to search providers
- Looking at my battery percentage isn't very necessary but still really cool - Looking at my battery percentage isn't very necessary but still really cool
* *
* Internal Config * Package Config
** Projectile ** Projectile
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(after! projectile (after! projectile
@@ -76,7 +76,7 @@ A keybind and a routine
** Wakatime ** Wakatime
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(use-package! wakatime-mode (use-package! wakatime-mode
:defer 1 :after-call (pre-command-hook)
:config :config
(setq wakatime-cli-path (expand-file-name "~/.local/bin/wakatime")) (setq wakatime-cli-path (expand-file-name "~/.local/bin/wakatime"))
(setq wakatime-api-key (replace-regexp-in-string "\n" "" (oreodave/password-store/get-password "Keys/Wakatime"))) (setq wakatime-api-key (replace-regexp-in-string "\n" "" (oreodave/password-store/get-password "Keys/Wakatime")))