chiark / gitweb /
emacs: Teach Emacs about English (and Welsh) bank holidays.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 24 Apr 2008 23:18:23 +0000 (00:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 24 Apr 2008 23:18:23 +0000 (00:18 +0100)
Found at http://www.mundell.ukfsn.org/elisp/ew-hols.el; thanks to
Matthew Mundell for this.

emacs
setup

diff --git a/emacs b/emacs
index 33b10b58e9b25b7a0b8431eac48e3e169023d47e..232c37f0470d5add6e86286a2709563d7b2acb86 100644 (file)
--- a/emacs
+++ b/emacs
 (setq calendar-longitude 0.1)
 (setq calendar-location-name "Cambridge, UK")
 
+;; --- Holidays ---
+
+(and (not mdw-fast-startup)
+     (trap
+       (require 'ew-hols)
+       (setq other-holidays (append english-and-welsh-bank-holidays
+                                   other-holidays))))
+
 ;; --- Date format fiddling ---
 
 (setq european-calendar-style t)
diff --git a/setup b/setup
index 16ef268ea2c03e03c7cf272ec7ce01a339b31824..183ea64a22cef0cda5427b488d9382adab0881df 100755 (executable)
--- a/setup
+++ b/setup
@@ -227,6 +227,7 @@ fi
 echo "Installing Emacs packages..."
 emacspkg="
   make-regexp
+  ew-hols
   git git-blame vc-git stgit
   quilt"
 for elib in $emacspkg; do