unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Simen Heggestøyl" <simenheg@gmail.com>
To: emacs-devel@gnu.org
Subject: norwegian-holidays.el
Date: Sat, 09 Jun 2018 16:03:42 +0200	[thread overview]
Message-ID: <1528553022.11582.0@smtp.gmail.com> (raw)


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

             reply	other threads:[~2018-06-09 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09 14:03 Simen Heggestøyl [this message]
2018-06-09 23:31 ` norwegian-holidays.el Stefan Monnier
2018-06-11  2:44   ` norwegian-holidays.el Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1528553022.11582.0@smtp.gmail.com \
    --to=simenheg@gmail.com \
    --cc=emacs-devel@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 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).