unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* norwegian-holidays.el
@ 2018-06-09 14:03 Simen Heggestøyl
  2018-06-09 23:31 ` norwegian-holidays.el Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Simen Heggestøyl @ 2018-06-09 14:03 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 133 bytes --]

I created this tiny package some years ago for adding Norwegian
holidays to the calendar.

Is it OK to add it to GNU ELPA?

-- Simen

[-- Attachment #1.2: Type: text/html, Size: 250 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: norwegian-holidays.el --]
[-- Type: text/x-emacs-lisp, Size: 2150 bytes --]

;;; norwegian-holidays.el --- Norwegian holidays for the calendar  -*- lexical-binding: t; -*-

;; Copyright (C) 2015-2018 Simen Heggestøyl

;; Author: Simen Heggestøyl <simenheg@gmail.com>
;; Keywords: calendar
;; Version: 0.1

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; Provides Norwegian holidays for the calendar package.

;; When installed with `package.el', the holidays will automatically
;; be put into `holiday-other-holidays'.

;; Else, to have them appear in the calendar, add something like the
;; following to your initialization file:

;; (dolist (h holiday-norwegian-holidays)
;;   (add-to-list 'holiday-other-holidays h))

;;; Code:

;;;###autoload
(defvar holiday-norwegian-holidays
  '((holiday-fixed 1 1 "Første nyttårsdag")
    (holiday-fixed 5 1 "Arbeidernes dag")
    (holiday-fixed 5 17 "Grunnlovsdag")
    (holiday-fixed 12 25 "Første juledag")
    (holiday-fixed 12 26 "Andre juledag")
    (holiday-easter-etc -7 "Palmesøndag")
    (holiday-easter-etc -3 "Skjærtorsdag")
    (holiday-easter-etc -2 "Langfredag")
    (holiday-easter-etc 0 "Første påskedag")
    (holiday-easter-etc 1 "Andre påskedag")
    (holiday-easter-etc 39 "Kristi himmelfartsdag")
    (holiday-easter-etc 49 "Første pinsedag")
    (holiday-easter-etc 50 "Andre pinsedag"))
  "Norwegian holidays.")

;;;###autoload
(dolist (h holiday-norwegian-holidays)
  (add-to-list 'holiday-other-holidays h))

(provide 'norwegian-holidays)
;;; norwegian-holidays.el ends here

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

* Re: norwegian-holidays.el
  2018-06-09 14:03 norwegian-holidays.el Simen Heggestøyl
@ 2018-06-09 23:31 ` Stefan Monnier
  2018-06-11  2:44   ` norwegian-holidays.el Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2018-06-09 23:31 UTC (permalink / raw)
  To: emacs-devel

> I created this tiny package some years ago for adding Norwegian
> holidays to the calendar.

Why not add it directly to Emacs's calendar?


        Stefan




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

* Re: norwegian-holidays.el
  2018-06-09 23:31 ` norwegian-holidays.el Stefan Monnier
@ 2018-06-11  2:44   ` Richard Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2018-06-11  2:44 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > I created this tiny package some years ago for adding Norwegian
  > > holidays to the calendar.

  > Why not add it directly to Emacs's calendar?

If we start adding the holidays of more countries, eventually
it will become clutter -- we would want some way for users
to specify which countries' holidays should be shown.

It could show "holidays of other countries" if the date
has holidays for nonselected countries.

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





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

end of thread, other threads:[~2018-06-11  2:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-09 14:03 norwegian-holidays.el Simen Heggestøyl
2018-06-09 23:31 ` norwegian-holidays.el Stefan Monnier
2018-06-11  2:44   ` norwegian-holidays.el Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).