Skip to content
Localise emacs calendar to Norwegian
Emacs Lisp
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.org moar
calendar-norway.el Merge branch 'master' of github.com:unhammer/calendar-norway.el

README.org

Norwegian localisation of Emacs Calendar

Based on http://bigwalter.net/daniel/elisp/sv-kalender.el v.1.8 by Daniel Jensen.

Usage

Put it somewhere in your load-path, then put something like this in your ~/.emacs:

(when (require 'calendar-norway nil 'noerror)
  ;; Localise date format, weekdays, months, lunar/solar names:
  (calendar-norway-common-settings)
  (setq calendar-holidays
     (append
      ;; Include days where you don't have to work:
      calendar-norway-raude-dagar
      ;; Include other days that people celebrate:
      calendar-norway-andre-merkedagar
      ;; Include daylight savings time:
      calendar-norway-dst
      ;; And then you can add some non-Norwegian holidays etc. if you like:
      '((holiday-fixed 3 17 "St. Patricksdag")
        (holiday-fixed 10 31 "Hallowe'en")
        (holiday-float 11 4 4 "Thanksgiving")
        (solar-equinoxes-solstices)))))

If you just want “red calendar days” and the Norwegian date formats, the following would be enough:

(when (require 'calendar-norway nil 'noerror)
  ;; Localise date format, weekdays, months, lunar/solar names:
  (calendar-norway-common-settings)
  ;; Show days where you don't have to work:
  (setq calendar-holidays calendar-norway-raude-dagar))

Note: the function calendar-norway-common-settings changes some settings that you may have already touched in your ~/.emacs (e.g. calendar-date-display-form), see the function definition for what it does.

I highly recommend calfw if you want a great-looking Emacs calendar that works with diary/org-mode/icalendar/howm/etc.

Bugs

Probably. Patches welcome.

Something went wrong with that request. Please try again.