Code Monkey home page Code Monkey logo

calendar-norway.el's Introduction

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:

;; Localises date format, weekdays, months, lunar/solar names:
(require 'calendar-norway)
;; Set what holidays you want in your calendar:
(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:

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

Note: requiring this package changes some settings that you may have already touched in your ~/.emacs (e.g. calendar-date-display-form), see the top of the file 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.

calendar-norway.el's People

Contributors

skrytebane avatar unhammer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.