From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: calendar fun (MS XP) Date: Mon, 12 Jul 2004 13:25:26 -0400 (EDT) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1089653241 8852 80.91.224.253 (12 Jul 2004 17:27:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2004 17:27:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 12 19:27:13 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bk4a8-0003PZ-00 for ; Mon, 12 Jul 2004 19:27:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bk4cS-0002US-D0 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jul 2004 13:29:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bk4cK-0002UF-0s for help-gnu-emacs@gnu.org; Mon, 12 Jul 2004 13:29:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bk4cH-0002Tp-7K for help-gnu-emacs@gnu.org; Mon, 12 Jul 2004 13:29:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bk4cH-0002Tm-4I for help-gnu-emacs@gnu.org; Mon, 12 Jul 2004 13:29:25 -0400 Original-Received: from [216.254.0.202] (helo=mail2.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bk4Zq-0007BM-G9 for help-gnu-emacs@gnu.org; Mon, 12 Jul 2004 13:26:54 -0400 Original-Received: (qmail 6561 invoked from network); 12 Jul 2004 17:26:48 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail2.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 12 Jul 2004 17:26:47 -0000 Original-To: GNU Emacs List X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19598 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19598 Hey, emacs gurus, I'm using emacs v.21.3.1 on Window$ XP. When emacs loads I would like it to display the standard three-month calendar in a smaller window at the bottom. So I put; (calendar) in my .emacs. Works great. So far, so good. I would also like the calendar to mark today. I used "Customize" to set this, it put: '(today-visible-calendar-hook (quote (calendar-mark-today)))) in my .emacs and it worked the first time. Since then, when I load emacs, it doesn't, i.e., the calendar is still displayed but today is not underlined. I'd also like the entries in my diary file (including the holidays which appear when I do "M-x diary") to be highlighted. I tried to do this via Customize, Customize put: '(initial-calendar-window-hook (quote (mark-diary-entries))) in my .emacs, but no days are highlighted. If, however, I put the mark at the end of the above line and do "C-x C-e", then put the mark on the second-to-last closed paren and do "C-x C-e", the diary entries are highlighted, but not the holidays. Because I really don't learn very much when I use Customize and because I've not found it to be reliable, I'd rather put elisp code into my .emacs. Does someone know the code I'd need to do what I've described above? I.e.: Upon loading emacs display calendar with diary entries and diary's holidays highlighted and today underlined. tmia, ken