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

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

Re: diary-mail-entries


From: Kevin Rodgers
Subject: Re: diary-mail-entries
Date: Tue, 20 Mar 2007 22:45:19 -0600
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)

address@hidden wrote:
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
\"address@hidden")" -l diary-lib -f diary-mail-entries

You are probably aware that --batch implies --no-init-file, which means
your personal .emacs and installation's default.el files are not loaded.

Rather than partially replicating the contents of those files with
--eval etc., why not explicitly load them:

emacs --batch --load ~/.emacs --load default.el --funcall 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)


--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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