Add :tools wakatime module
This commit is contained in:
parent
e918040e70
commit
70ce322e99
2 changed files with 17 additions and 0 deletions
13
modules/tools/wakatime/autoload.el
Normal file
13
modules/tools/wakatime/autoload.el
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
;;; 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))
|
4
modules/tools/wakatime/packages.el
Normal file
4
modules/tools/wakatime/packages.el
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; tools/wakatime/packages.el
|
||||||
|
|
||||||
|
(package! wakatime-mode)
|
Loading…
Add table
Add a link
Reference in a new issue