all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* calendar fun (MS XP)
@ 2004-07-12 17:25 gebser
  0 siblings, 0 replies; only message in thread
From: gebser @ 2004-07-12 17:25 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-12 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12 17:25 calendar fun (MS XP) gebser

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.