From 53445548a0e601c9f9ec258c095aa08b79434722 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 20 Oct 2016 14:09:15 +0200 Subject: [PATCH] Install the hungarian-holidays package --- .../hungarian-holidays-autoloads.el | 22 ++++++ .../hungarian-holidays-pkg.el | 2 + .../hungarian-holidays.el | 75 +++++++++++++++++++ init.el | 5 ++ 4 files changed, 104 insertions(+) create mode 100644 elpa/hungarian-holidays-20161020.1338/hungarian-holidays-autoloads.el create mode 100644 elpa/hungarian-holidays-20161020.1338/hungarian-holidays-pkg.el create mode 100644 elpa/hungarian-holidays-20161020.1338/hungarian-holidays.el diff --git a/elpa/hungarian-holidays-20161020.1338/hungarian-holidays-autoloads.el b/elpa/hungarian-holidays-20161020.1338/hungarian-holidays-autoloads.el new file mode 100644 index 0000000..d7e8621 --- /dev/null +++ b/elpa/hungarian-holidays-20161020.1338/hungarian-holidays-autoloads.el @@ -0,0 +1,22 @@ +;;; hungarian-holidays-autoloads.el --- automatically extracted autoloads +;; +;;; Code: +(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path)))) + +;;;### (autoloads nil "hungarian-holidays" "hungarian-holidays.el" +;;;;;; (22536 45780 583601 279000)) +;;; Generated autoloads from hungarian-holidays.el + +(autoload 'hungarian-holidays-add "hungarian-holidays" "\ +Add Hungarian public holidays to Emacs calendar. + +\(fn)" nil nil) + +;;;*** + +;; Local Variables: +;; version-control: never +;; no-byte-compile: t +;; no-update-autoloads: t +;; End: +;;; hungarian-holidays-autoloads.el ends here diff --git a/elpa/hungarian-holidays-20161020.1338/hungarian-holidays-pkg.el b/elpa/hungarian-holidays-20161020.1338/hungarian-holidays-pkg.el new file mode 100644 index 0000000..79017cf --- /dev/null +++ b/elpa/hungarian-holidays-20161020.1338/hungarian-holidays-pkg.el @@ -0,0 +1,2 @@ +;;; -*- no-byte-compile: t -*- +(define-package "hungarian-holidays" "20161020.1338" "Adds a list of Hungarian public holidays to Emacs calendar" 'nil :authors '(("Gergely Polonkai" . "gergely@polonkai.eu")) :maintainer '("Gergely Polonkai" . "gergely@polonkai.eu")) diff --git a/elpa/hungarian-holidays-20161020.1338/hungarian-holidays.el b/elpa/hungarian-holidays-20161020.1338/hungarian-holidays.el new file mode 100644 index 0000000..429c6a9 --- /dev/null +++ b/elpa/hungarian-holidays-20161020.1338/hungarian-holidays.el @@ -0,0 +1,75 @@ +;;; hungarian-holidays.el --- Adds a list of Hungarian public holidays to Emacs calendar + +;; Copyright (C) 2016 Gergely Polonkai + +;; Author: Gergely Polonkai +;; Maintainer: Gergely Polonkai +;; Version: 0.0.1 +;; Package-Version: 20161020.1338 +;; Created: 20th October 2016 +;; Keywords: calendar + +;; 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 . + +;;; Commentary: + +;;; This package adds Hungarian (https://en.wikipedia.org/wiki/Hungary) +;;; public holidays to the Emacs calendar. +;;; +;;; If you have `org-agenda-include-diary` set to `t`, these will be +;;; also listed in the `org-agenda` view. + +;;; Installation + +;;; This package is available on MELPA, just `M-x` `package-install` +;;; `hungarian-holidays`. If you want to install it manually, clone +;;; this repository somewhere, add it to `load-path`, and add +;;; `(require 'hungarian-holidays)` to `.emacs`. + +;;; Configuration + +;;; Add a call to `(hungarian-holidays-add)` somewhere in your +;;; `.emacs`. Note that this must be called *before* Emacs calendar +;;; is loaded. + +;;; Attribution + +;;; This package is based on David Chkhikvadze’s `czech-holidays' +;;; package. + +;;; Code: + +(defvar hungarian-holidays-list + '((holiday-fixed 1 1 "Újév") + (holiday-fixed 3 15 "Az 1848-as forradalom ünnepe") + (holiday-easter-etc 0 "Húsvét Vasárnap") + (holiday-easter-etc 1 "Húsvét Hétfő") + (holiday-fixed 5 1 "A munka ünnepe") + (holiday-easter-etc 49 "Pünkösd vasárnap") + (holiday-easter-etc 50 "Pünkösd hétfő") + (holiday-fixed 8 20 "Az Államalapítás ünnepe") + (holiday-fixed 10 23 "Az 1956-os forradalom ünnepe") + (holiday-fixed 11 1 "Mindenszentek") + (holiday-fixed 12 25 "Karácsony napja") + (holiday-fixed 12 26 "Karácsony másnapja")) + "List of Hungarian public holidays.") + +;;;###autoload +(defun hungarian-holidays-add () + "Add Hungarian public holidays to Emacs calendar." + (mapc (lambda (d) (add-to-list 'holiday-other-holidays d t)) + hungarian-holidays-list)) + +(provide 'hungarian-holidays) +;;; hungarian-holidays.el ends here diff --git a/init.el b/init.el index 62c7c7e..9676669 100644 --- a/init.el +++ b/init.el @@ -91,6 +91,7 @@ helm-smex helm-swoop helm-unicode + hungarian-holidays hyde id-manager identica-mode @@ -556,6 +557,10 @@ :after yasnippet) +(use-package hungarian-holidays + :config + (hungarian-holidays-add)) + ;; Load my own functions (load "gnu-c-header.el") (load "toggle-window-split.el")