Re-acivate milliways timer when scheduling.

Pascal J. Bourguignon [2020-11-01 22:57]
Re-acivate milliways timer when scheduling.
Filename
pjb-milliways.el
diff --git a/pjb-milliways.el b/pjb-milliways.el
index 3440b76..446c1e1 100644
--- a/pjb-milliways.el
+++ b/pjb-milliways.el
@@ -51,7 +51,10 @@

 (defun milliways-schedule (function)
   "Schedule the function to be called after emacs started."
-  (push function *milliways*))
+  (push function *milliways*)
+  (unless (find 'milliways-run (append timer-list timer-idle-list)
+                :key (function timer--function))
+    (milliways-activate)))

 (milliways-schedule
  (lambda ()
ViewGit