[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the UK holidays displaying in the agenda?
From: |
Memnon Anon |
Subject: |
Re: How to get the UK holidays displaying in the agenda? |
Date: |
Fri, 08 Aug 2014 14:31:38 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) |
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> Memnon Anon <memnon+usenet@freeshell.org> writes:
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>>> How can I get the diary containing UK holidays to show in my agenda
>>> please?
>>
>> http://www.emacswiki.org/emacs/CalendarLocalization
>>
> Thanks Memnon, but it doesn't actually have anything there for the UK!
Hmmm, a very quick try:
Holidays from:
https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom
Put this in your .emacs, restart, and give it a try:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq european-calendar-style t ; obsolete!
calendar-date-style 'european
; calendar-latitude
; calendar-longitude
calendar-week-start-day 1
mark-holidays-in-calendar t
;; remove some holidays
all-christian-calendar-holidays nil ;obsolete
calendar-christian-all-holidays-flag nil
general-holidays t
hebrew-holidays nil
islamic-holidays nil
oriental-holidays nil
bahai-holidays nil)
(setq holiday-general-holidays
'((holiday-fixed 1 1 "New Year's Day")
(holiday-fixed 3 17 "St. Patrick's Day")
(holiday-float 5 1 1 "May Day Bank Holiday")
(holiday-fixed 7 12 "Battle of the Boyne")
(holiday-float 8 1 -1 "May Day Bank Holiday")
(holiday-fixed 12 26 "Boxing Day")))
(setq holiday-christian-holidays
'((holiday-fixed 12 25 "Christmas Day")
(holiday-easter-etc -2 "Good Friday")
(holiday-easter-etc +1 "Easter Monday")))
(setq calendar-holidays
(append general-holidays
christian-holidays))
(setq org-agenda-include-diary t)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Hmmm, these are really all holidays?!
I'm in a hurry, test it, we'll tweak and tinker with it later ;).
hth
Memnon
--
/-------------------------------------------\
| SDF and SDF-EU Public Access UNIX System |
| http://sdf.org || http://sdf-eu.org |
=============================================