all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get the UK holidays displaying in the agenda?
@ 2014-07-30 13:48 Sharon Kimble
  2014-08-08 13:06 ` Memnon Anon
  2014-08-08 19:44 ` Charles Philip Chan
  0 siblings, 2 replies; 11+ messages in thread
From: Sharon Kimble @ 2014-07-30 13:48 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]


How can I get the diary containing UK holidays to show in my agenda
please? I've got my usual TODOs from my organiser file, but can't
find anything which has the UK holidays.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
       [not found] <mailman.6282.1406728120.1147.help-gnu-emacs@gnu.org>
@ 2014-08-08 12:39 ` Hans BKK
  2014-08-08 13:40   ` Sharon Kimble
  0 siblings, 1 reply; 11+ messages in thread
From: Hans BKK @ 2014-08-08 12:39 UTC (permalink / raw)
  To: help-gnu-emacs

On Wednesday, July 30, 2014 9:48:15 AM UTC-4, Sharon Kimble wrote:
> How can I get the diary containing UK holidays to show in my agenda
> please? I've got my usual TODOs from my organiser file, but can't
> find anything which has the UK holidays.
> 

By 'agenda' you mean org-mode calendar?

Lots of support out there for converting from ICS/iCal format, and tons of files in that format listing holidays, e.g. do you want only bank-closings or also ones like Ramadan?

The org list & google will provide further help


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-07-30 13:48 How to get the UK holidays displaying in the agenda? Sharon Kimble
@ 2014-08-08 13:06 ` Memnon Anon
  2014-08-08 13:38   ` Sharon Kimble
  2014-08-08 19:44 ` Charles Philip Chan
  1 sibling, 1 reply; 11+ messages in thread
From: Memnon Anon @ 2014-08-08 13:06 UTC (permalink / raw)
  To: help-gnu-emacs

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> How can I get the diary containing UK holidays to show in my agenda
> please? 

Did you see: 

    http://www.emacswiki.org/emacs/CalendarLocalization

?

hth
Memnon
-- 
/-------------------------------------------\
| SDF and SDF-EU Public Access UNIX System  |
| http://sdf.org   ||   http://sdf-eu.org   |
=============================================




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-08-08 13:06 ` Memnon Anon
@ 2014-08-08 13:38   ` Sharon Kimble
  2014-08-08 13:49     ` Eric Abrahamsen
  2014-08-08 14:31     ` Memnon Anon
  0 siblings, 2 replies; 11+ messages in thread
From: Sharon Kimble @ 2014-08-08 13:38 UTC (permalink / raw)
  To: Memnon Anon; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

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? 
>
> Did you see: 
>
>     http://www.emacswiki.org/emacs/CalendarLocalization
>
Thanks Memnon, but it doesn't actually have anything there for the UK!

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-08-08 12:39 ` Hans BKK
@ 2014-08-08 13:40   ` Sharon Kimble
  0 siblings, 0 replies; 11+ messages in thread
From: Sharon Kimble @ 2014-08-08 13:40 UTC (permalink / raw)
  To: Hans BKK; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

Hans BKK <hansbkk@gmail.com> writes:

> On Wednesday, July 30, 2014 9:48:15 AM UTC-4, Sharon Kimble wrote:
>> How can I get the diary containing UK holidays to show in my agenda
>> please? I've got my usual TODOs from my organiser file, but can't
>> find anything which has the UK holidays.
>> 
>
> By 'agenda' you mean org-mode calendar?
>
> Lots of support out there for converting from ICS/iCal format, and
> tons of files in that format listing holidays, e.g. do you want only
> bank-closings or also ones like Ramadan?
>
> The org list & google will provide further help

C-a a - which gives agenda for current week or day. 

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-08-08 13:38   ` Sharon Kimble
@ 2014-08-08 13:49     ` Eric Abrahamsen
  2014-08-08 14:31     ` Memnon Anon
  1 sibling, 0 replies; 11+ messages in thread
From: Eric Abrahamsen @ 2014-08-08 13:49 UTC (permalink / raw)
  To: help-gnu-emacs

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? 
>>
>> Did you see: 
>>
>>     http://www.emacswiki.org/emacs/CalendarLocalization
>>
> Thanks Memnon, but it doesn't actually have anything there for the UK!

Do you have this? (setq org-agenda-include-diary t)

That's all I can think of...




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-08-08 13:38   ` Sharon Kimble
  2014-08-08 13:49     ` Eric Abrahamsen
@ 2014-08-08 14:31     ` Memnon Anon
  2014-08-08 21:41       ` Robert Thorpe
  1 sibling, 1 reply; 11+ messages in thread
From: Memnon Anon @ 2014-08-08 14:31 UTC (permalink / raw)
  To: help-gnu-emacs

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   |
=============================================




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-07-30 13:48 How to get the UK holidays displaying in the agenda? Sharon Kimble
  2014-08-08 13:06 ` Memnon Anon
@ 2014-08-08 19:44 ` Charles Philip Chan
  1 sibling, 0 replies; 11+ messages in thread
From: Charles Philip Chan @ 2014-08-08 19:44 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

On 30 Jul 2014, boudiccas@skimble.plus.com wrote:

> How can I get the diary containing UK holidays to show in my agenda
> please? I've got my usual TODOs from my organiser file, but can't find
> anything which has the UK holidays.

1. Customize the variable "calendar-holidays" to make sure all the
   missing holidays are there. I personally do this for my local
   Canadian holidays.

2. If you have included diary entries in your agenda view (see the
   variable "org-agenda-include-diary"), then everything will happen
   automatically. If not, add:

,----
| #+CATEGORY: Holiday
| %%(org-calendar-holiday)   ; special function for holiday names
`----

   to one of your agenda files. Please see section 10.3.1 of the
   org-mode manual for details.

Charles

-- 
Your job is being a professor and researcher: That's one hell of a good excuse
for some of the brain-damages of minix.
(Linus Torvalds to Andrew Tanenbaum)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
  2014-08-08 14:31     ` Memnon Anon
@ 2014-08-08 21:41       ` Robert Thorpe
  0 siblings, 0 replies; 11+ messages in thread
From: Robert Thorpe @ 2014-08-08 21:41 UTC (permalink / raw)
  To: Memnon Anon; +Cc: help-gnu-emacs

Memnon Anon <memnon+usenet@freeshell.org> writes:
...
> (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")))

This looks like a Northern Ireland list.  St. Patrick's day and Battle
of the Boyne day aren't holidays in the rest of the UK.  (Battle of the
Boyne day isn't a holiday in the sense of "something you look forward to".)

The second one you have called "May Day Bank Holiday" is the August bank
holiday.  There's another bank holiday too, but I can't remember when it
is.

BR,
Robert Thorpe



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
       [not found] <mailman.6839.1407534120.1147.help-gnu-emacs@gnu.org>
@ 2014-08-08 22:13 ` Emanuel Berg
  2014-08-09 21:00 ` Will Parsons
  1 sibling, 0 replies; 11+ messages in thread
From: Emanuel Berg @ 2014-08-08 22:13 UTC (permalink / raw)
  To: help-gnu-emacs

Robert Thorpe <rt@robertthorpeconsulting.com> writes:

> This looks like a Northern Ireland list. St.
> Patrick's day and Battle of the Boyne day aren't
> holidays in the rest of the UK. (Battle of the Boyne
> day isn't a holiday in the sense of "something you
> look forward to".)
>
> The second one you have called "May Day Bank Holiday"
> is the August bank holiday. There's another bank
> holiday too, but I can't remember when it is.

Perhaps the OP just wants it because it is
interesting/fun.

I don't know how it is in the UK but in Sweden we have
tons of holidays but they don't have a practical
purpose anymore as many people work those days anyway
(in one way or another) and the shops are all open. It
is just confusing - sometimes something you need just
isn't there because it is a "holiday", and you haven't
noticed anything because everything save for that
detail is exactly as any other day...

I think that system belongs to another time before
pitch-black capitalism conquered everything. Only in
affluent Norway they can afford to maintain it - there,
the shops are all closed even Sundays! Like a dead
city! First time I saw it I thought they were shooting
an post-apocalypse move...

-- 
underground experts united


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: How to get the UK holidays displaying in the agenda?
       [not found] <mailman.6839.1407534120.1147.help-gnu-emacs@gnu.org>
  2014-08-08 22:13 ` Emanuel Berg
@ 2014-08-09 21:00 ` Will Parsons
  1 sibling, 0 replies; 11+ messages in thread
From: Will Parsons @ 2014-08-09 21:00 UTC (permalink / raw)
  To: help-gnu-emacs

Robert Thorpe wrote:
> Memnon Anon <memnon+usenet@freeshell.org> writes:
> ...
>> (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")))
>
> This looks like a Northern Ireland list.  St. Patrick's day and Battle
> of the Boyne day aren't holidays in the rest of the UK.  (Battle of the
> Boyne day isn't a holiday in the sense of "something you look forward to".)

That depends on one's point of view, I think.  Anyway, the default
list of holidays contain things like "Groundhog Day" and "April Fools'
Day" that aren't by any stretch of the imagination real holidays.

-- 
Will


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-09 21:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 13:48 How to get the UK holidays displaying in the agenda? Sharon Kimble
2014-08-08 13:06 ` Memnon Anon
2014-08-08 13:38   ` Sharon Kimble
2014-08-08 13:49     ` Eric Abrahamsen
2014-08-08 14:31     ` Memnon Anon
2014-08-08 21:41       ` Robert Thorpe
2014-08-08 19:44 ` Charles Philip Chan
     [not found] <mailman.6282.1406728120.1147.help-gnu-emacs@gnu.org>
2014-08-08 12:39 ` Hans BKK
2014-08-08 13:40   ` Sharon Kimble
     [not found] <mailman.6839.1407534120.1147.help-gnu-emacs@gnu.org>
2014-08-08 22:13 ` Emanuel Berg
2014-08-09 21:00 ` Will Parsons

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.