mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix wakatime breaking emacs if no api-key set
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
;;;###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
|
||||
|
Reference in New Issue
Block a user