;;; tools/wakatime/autoload.el -*- lexical-binding: t; -*-

;;;###autoload
(add-hook 'doom-after-switch-buffer-hook #'+wakatime-init)

;;;###autoload
(defun +wakatime-init ()
  "Initialize wakatime (if `wakatime-api-key' is set, otherwise no-op with a
warning)."
  (if 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))

;;; tools/wakatime/autoload.el -*- lexical-binding: t; -*-

;;;###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
      (global-wakatime-mode +1)
    (message "No `wakatime-api-key' set! wakaktime-mode will stay disabled."))
  (remove-hook 'doom-after-switch-buffer-hook #'+wakatime-init))

Fix wakatime breaking emacs if no api-key set
Fix wakatime breaking emacs if no api-key set

UndeadKernel/emacs_doom,hlissner/.emacs.d,hlissner/.emacs.d,hlissner/.emacs.d,hlissner/doom-emacs,hlissner/doom-emacs,hlissner/doom-emacs,hlissner/doom-emacs,UndeadKernel/emacs_doom,hlissner/.emacs.d,UndeadKernel/emacs_doom,hlissner/doom-emacs,hlissner/.emacs.d,UndeadKernel/emacs_doom,hlissner/doom-emacs,hlissner/doom-emacs,hlissner/.emacs.d,UndeadKernel/emacs_doom,UndeadKernel/emacs_doom,hlissner/.emacs.d,hlissner/.emacs.d,UndeadKernel/emacs_doom