可以用 run-with-timer 这个函数设置时间。我自己用这个函数来定时检查是否天黑,然后切换主题。
run-with-timer
(run-with-timer SECS REPEAT FUNCTION &rest ARGS)