From a7eb47fb03e2bb268d4dbde3f147a8aad1617134 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Sat, 25 Sep 2021 05:08:07 +0900 Subject: [PATCH] Add a idle timer --- emacs.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index a1f2c9e..a75fe65 100644 --- a/emacs.el +++ b/emacs.el @@ -3133,7 +3133,7 @@ ARGS are not used." ;; これいつ動くの? -;; 自動で pruject を switch させる方法はある? +;; 自動で project を switch させる方法はある? (add-hook 'projectile-after-switch-project-hook (lambda () (message "Projecttile switched to: %s" @@ -3143,6 +3143,12 @@ ARGS are not used." (message "Emacs started at %s" (current-time-string)) +(run-with-idle-timer (* 3 60 60) ;; 3 hours + t + (lambda () + (message "Emacs does nothing for 3 hours: %s" + (current-time-string)))) + ;; https://emacs-jp.github.io/tips/startup-optimization ;; Restore to original value