mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't shadow wakatime-api-key
This commit is contained in:
@ -3,14 +3,11 @@
|
||||
;;;###autoload
|
||||
(add-hook 'doom-after-switch-buffer-hook #'+wakatime-init)
|
||||
|
||||
;;;###autoload
|
||||
(defvar wakatime-api-key nil)
|
||||
|
||||
;;;###autoload
|
||||
(defun +wakatime-init ()
|
||||
"Initialize wakatime (if `wakatime-api-key' is set, otherwise no-op with a
|
||||
warning)."
|
||||
(if wakatime-api-key
|
||||
(if (boundp 'wakatime-api-key)
|
||||
(global-wakatime-mode +1)
|
||||
(message "No `wakatime-api-key' set! wakaktime-mode will stay disabled."))
|
||||
(remove-hook 'doom-after-switch-buffer-hook #'+wakatime-init))
|
||||
|
Reference in New Issue
Block a user