all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carson Chittom <carson@wistly.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs Calendar: change date of holiday
Date: Sat, 10 Aug 2013 07:36:51 -0500	[thread overview]
Message-ID: <87zjsp90yk.fsf@abbey.wistly.net> (raw)
In-Reply-To: 1376059756.36418.YahooMailNeo@web163101.mail.bf1.yahoo.com

Enda <enda_k2@yahoo.com> writes:

> How do I change or remove a holiday in the Emacs Calendar?

Depends on what exactly you want to remove/change.  Here's an
illustration.  I am an Orthodox Christian, but
calendar-christian-all-holidays uses Catholic/Protestant dates and
feasts.  So there's probably some better way to do this, but in
~/.emacs I have

(setq calendar-holidays
      (append holiday-general-holidays  
              holiday-other-holidays
              holiday-local-holidays))

This tells Emacs that the only holiday lists it should use are
holiday-general-holidays, which includes Father's Day, Mother's Day,
April Fools Day, etc; holiday-other-holidays (per-user set holidays),
and holiday-local-holidays (holidays set on the local system).

Then I define holiday-other-holidays to account for feasts and my
children's and godson's name days:

(setq holiday-other-holidays
      '((holiday-greek-orthodox-easter)  ; from Emacs' holidays.el
        (holiday-fixed 9 8 "Nativity of the Theotokos")
        (holiday-fixed 9 14 "Elevation of the Holy Cross")
        (holiday-fixed 11 21 "Presentation of the Theotokos")
        (holiday-fixed 12 25 "Nativity of Christ")
        (holiday-fixed 1 6 "Theophany")
        (holiday-fixed 2 2 "Presentation of the Lord")
        (holiday-fixed 3 25 "Annunciation")
        (holiday-fixed 8 6 "Transfiguration")
        (holiday-fixed 8 15 "Dormition of the Theotokos")
        (holiday-fixed 11 8 "Archangel Michael and other Bodiless Powers")
        (holiday-fixed 11 24 "St. Katherine of Alexandria")
        (holiday-fixed 3 26 "Archangel Gabriel")
        (holiday-fixed 1 3 "St. Genevieve of Paris")
        (holiday-fixed 9 5 "Righteous Elizabeth, Mother of the Forerunner")
        (holiday-fixed 8 20 "Prophet Samuel")))

Any others I wanted--religious or not--could be defined in the same way:
birthdays, for example.  




  parent reply	other threads:[~2013-08-10 12:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-09 14:49 Emacs Calendar: change date of holiday Enda
2013-08-09 14:55 ` Frederik
2013-08-09 16:44 ` Peter Dyballa
2013-08-10 12:36 ` Carson Chittom [this message]
2013-08-13 16:46 ` Emacs Calendar Holidays Enda
2013-08-19 17:43   ` Enda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjsp90yk.fsf@abbey.wistly.net \
    --to=carson@wistly.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.