Преглед на файлове

Add a idle timer

master
10sr преди 2 години
родител
ревизия
a7eb47fb03
Подписан от: 10sr GPG ключ ID: 7BEC428194130EB2
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. +7
    -1
      emacs.el

+ 7
- 1
emacs.el Целия файл

@@ -3133,7 +3133,7 @@ ARGS are not used."




;; これいつ動くの? ;; これいつ動くの?
;; 自動で pruject を switch させる方法はある?
;; 自動で project を switch させる方法はある?
(add-hook 'projectile-after-switch-project-hook (add-hook 'projectile-after-switch-project-hook
(lambda () (lambda ()
(message "Projecttile switched to: %s" (message "Projecttile switched to: %s"
@@ -3143,6 +3143,12 @@ ARGS are not used."


(message "Emacs started at %s" (message "Emacs started at %s"
(current-time-string)) (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 ;; https://emacs-jp.github.io/tips/startup-optimization
;; Restore to original value ;; Restore to original value


Зареждане…
Отказ
Запис