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

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

diary-mail-entries


From: sven . bretfeld
Subject: diary-mail-entries
Date: Tue, 20 Mar 2007 22:49:22 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello list

I'm trying to set up a cron job sending me the entries of the Emacs
diary every morning, just as described in

http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#DiaryMode3

It's not working, since the mail sent by the script doesn't contain
all of the entries of my diary file. It contains almost only
automatical entries like holidays. A few personal entries are
included, however, about two out of 20. Does anybody have an idea
what's going wrong here?

I add the script and my settings below.

Thanks for help
Sven

------------

Here is the script (it's one line in the original; I tried 50 days
just to see if any entry is caught at all, it should be 7 or less
after I got it working):

#!/bin/bash
emacs --batch --eval "(setq diary-mail-days 50 european-calendar-style
t diary-file \"~/aktuell/myconf/diary\" diary-mail-addr
\"sven.bretfeld@relwi.unibe.ch\")" -l diary-lib -f diary-mail-entries

And here are the diary-settings of my .emacs:

(setq diary-file "~/aktuell/myconf/diary")

;; Europäisch
(setq european-calendar-style 't)
(setq calendar-week-start-day 1
       calendar-day-name-array
         ["Sonntag" "Montag" "Dienstag" "Mittwoch" 
          "Donnerstag" "Freitag" "Samstag"]
       calendar-month-name-array
         ["Januar" "Februar" "März" "April" "Mai" 
          "Juni" "Juli" "August" "September" 
          "Oktober" "November" "Dezember"])

;; Start with diary (if there is an entry today)
(diary)

;; Timer
(display-time)
(add-hook 'diary-hook 'appt-make-list)
(diary 0)

;; LaTeX output des Kalenders
(setq cal-tex-diary 't)





reply via email to

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