From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Memnon Anon Newsgroups: gmane.emacs.help Subject: Re: How to get the UK holidays displaying in the agenda? Date: Fri, 08 Aug 2014 14:31:38 +0000 Message-ID: References: <87lhrbnejk.fsf@skimble.plus.com> <87d2cbgkyy.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407508363 6075 80.91.229.3 (8 Aug 2014 14:32:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 14:32:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 16:32:39 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XFlDi-0001GC-A9 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2014 16:32:38 +0200 Original-Received: from localhost ([::1]:51448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFlDh-0001tE-TH for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2014 10:32:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFlDT-0001t9-Qe for help-gnu-emacs@gnu.org; Fri, 08 Aug 2014 10:32:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFlDP-00036Z-Co for help-gnu-emacs@gnu.org; Fri, 08 Aug 2014 10:32:23 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFlDP-00035w-5t for help-gnu-emacs@gnu.org; Fri, 08 Aug 2014 10:32:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XFlDN-0000iY-RQ for help-gnu-emacs@gnu.org; Fri, 08 Aug 2014 16:32:17 +0200 Original-Received: from odin.sdf-eu.org ([178.63.35.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 16:32:17 +0200 Original-Received: from memnon+usenet by odin.sdf-eu.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 16:32:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: odin.sdf-eu.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Cancel-Lock: sha1:EdRvmcC2wolf0hXW8kYK5nVmkEA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99137 Archived-At: Sharon Kimble writes: > Memnon Anon writes: >> Sharon Kimble 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 | =============================================