mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(display-time): Fix start time for run-at-time.
This commit is contained in:
parent
e07d54499f
commit
92373e943a
@ -71,7 +71,10 @@ After each update, `display-time-hook' is run with `run-hooks'."
|
||||
;; Setup the time timer.
|
||||
(and display-time-timer (cancel-timer display-time-timer))
|
||||
(setq display-time-timer
|
||||
(run-at-time nil display-time-interval 'display-time-event-handler))
|
||||
;; Start timer at the beginning of the current minute so that
|
||||
;; it updates as soon as the minute changes.
|
||||
(run-at-time (apply 'encode-time 0 (cdr (decode-time)))
|
||||
display-time-interval 'display-time-event-handler))
|
||||
;; When you get new mail, clear "Mail" from the mode line.
|
||||
(add-hook 'rmail-after-get-new-mail-hook 'display-time-event-handler))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user