BlogMax: Blogging in Emacs
A great way to maintain a blog
Home

License

Download

Docs

Blogs

    BlogMax is an Emacs package that aids in the creation of a weblog. News below. See the Docs page for details.

Calendar Macro Extended

Tuesday, November 20, 2001

In response to a user request, I have added a second optional parameter to the calendar macro. It now takes two optional arguments, file and start-day. file defaults to the current weblog story file. You will rarely if ever need to specify it. Use nil to get the default. start-day is the day of the week for the first column of the calendar. 0 is Sunday, 1 is Monday, ..., 6 is Saturday. The default is 0, Sunday. Hence to put in a calendar starting on Monday, you would place the following in one of your template files:

{calendar nil 1}

November 2001
Sun Mon Tue Wed Thu Fri Sat
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
Oct  Dec

xml


emacs Copyright © 2001 by Bill St. Clair <bill@billstclair.com> source