Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

emakei/belarus-holidays.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

belarus-holidays.el

Belarus holidays (whith highlightning)

To highlight days use something like this

(defadvice calendar-generate-month
(after highlight-weekend-days (month year indent) activate)
"Highlight weekend days. 
If STRING contains `\(нерабочы\)' day is non-working.
If STRING contains `\(рабочы\)' day is working."
(dotimes (i 31)
  (let ((date (list month (1+ i) year)) (working nil) (non-working nil) 
 (hlist nil))
     (setq hlist (calendar-check-holidays date))
        (dolist (cursor hlist)
            (if (string-match-p "\(рабочий\)" cursor)
	        (setq working t))
            (if (string-match-p "\(нерабочий\)" cursor)
	        (setq non-working t)))
        (if (and (not working)
               (or (= (calendar-day-of-week date) 0)
                   (= (calendar-day-of-week date) 6)
	           non-working))
	    (calendar-mark-visible-date date 'holiday)))))

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors