Make +wakatime-init interactive

Sometimes it doesn't prompt to decrypt gpg, etc etc. Regardless, I think
this should be interactive so it's easily re-initialized
This commit is contained in:
Aria Edmonds 2018-06-11 12:28:03 +10:00
parent a25eff0189
commit b9a179eeed

View file

@ -7,6 +7,7 @@
(defun +wakatime-init ()
"Initialize wakatime (if `wakatime-api-key' is set, otherwise no-op with a
warning)."
(interactive)
(if (boundp 'wakatime-api-key)
(global-wakatime-mode +1)
(message "No `wakatime-api-key' set! wakaktime-mode will stay disabled."))