help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daily Diary Display in Emacs emacs24 24.4+1-5


From: John Mastro
Subject: Re: Daily Diary Display in Emacs emacs24 24.4+1-5
Date: Fri, 23 Oct 2015 17:28:41 -0700

Charles Curley <charlescurley@charlescurley.com> wrote:
> I have emacs24, 24.4+1-5 on Debian 8.2 jessie. In the past (e.g. emacs
> 23.4+1-4 on debian 7.x, wheezy), I have had emacs re-display my diary
> every day automatically. This capability does not seem to work on this
> version of emacs.

As an example, this will call the `diary' function every night at
midnight. Is this the functionality you have in mind or do you need
something more sophisticated? I didn't see anything in the code you
posted that seems to do anything on a schedule. (But note that I don't
use `diary' myself).

    (defvar my-diary-update-timer
      (run-at-time "12am" (* 60 60 24) #'diary)
      "Timer to call `diary' ever night at midnight.")
    ;; To cancel:
    ;; (cancel-timer my-diary-update-timer)

-- 
john



reply via email to

[Prev in Thread] Current Thread [Next in Thread]