From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: adamp_at@at_ipipan.waw.pl (Adam P.) Newsgroups: gmane.emacs.help Subject: Re: enhanced diary mode? Date: Sun, 03 Nov 2002 13:31:51 +0100 Organization: IPI PAN Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87vg3ezvew.fsf@at_ipipan.waw.pl> References: <87lm4bas08.fsf@at_ipipan.waw.pl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036327698 9212 80.91.224.249 (3 Nov 2002 12:48:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2002 12:48:18 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188KAq-0002OK-00 for ; Sun, 03 Nov 2002 13:48:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188KBF-0008SJ-00; Sun, 03 Nov 2002 07:48:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!news.man.poznan.pl!news.nask.pl!news.astercity.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: 10.133.134.107 Original-X-Trace: foka.acn.pl 1036326714 8442 10.133.134.107 (3 Nov 2002 12:31:54 GMT) Original-X-Complaints-To: abuse@astercity.net Original-NNTP-Posting-Date: Sun, 3 Nov 2002 12:31:54 +0000 (UTC) X-Tech-Contact: usenet@astercity.net X-Server-Info: http://www.astercity.net/news/ X-Real-Name: Adam Przepiorkowski User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Cancel-Lock: sha1:bUPTcnQrUF2qCq16nJw4aZHNWSo= X-Real-Address: Remove those _at_s Original-Xref: shelby.stanford.edu gnu.emacs.help:106688 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3242 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3242 "Alfred M. Szmidt" writes: > Did you read the section about Calendar/Diary in the Emacs manual? Yes. Apparently missed some important bits, though... > From (emacs)Diary Commands: > > Many users like to receive notice of events in their diary as > email. To send such mail to yourself, use the command `M-x > diary-mail-entries'. A prefix argument specifies how many days > (starting with today) to check; otherwise, the variable > `diary-mail-days' says how many days. This description wasn't helpful because it suggested that I have to run M-x diary-mail-entries manually each time I want to remind myself about diary entries, which missed the point. But "C-h f diary-mail-entries" describes a way of automating this task (using cron). > - marking diary entries in various ways depending on the type of the > entry (e.g.: anniversaries in red and appointment via underlining); > > See (emacs)Special Diary Entries: > > Each of the standard sexp diary entries takes an optional parameter > specifying the name of a face or a single-character string to use when > marking the entry in the calendar. A! This is useful -- thanks. More useful would be defining just a few entry types, with a face for each type, and without the need to manually assign face to each entry, but I suppose this can be done with some elisp tweaking. > - something like RefTeX's follow mode: moving cursor from one date to > another would automatically result in displaying diary entries for > the new date, without the need to press 'd' each time. > > See calendar-move-hook: > > *List of functions called whenever the cursor moves in the calendar. > > For example, > > (add-hook 'calendar-move-hook (lambda () (view-diary-entries 1))) > > redisplays the diary for whatever date the cursor is moved to. Many thanks -- that's been very helpful. Best, Adam -- Name and address in X-Real...