feat(emacs): Org Agenda and calendar Chinese supports

This commit is contained in:
js0ny 2025-03-04 23:29:25 +00:00
parent abfa1bebec
commit 32713a2b8f
2 changed files with 102 additions and 3 deletions

View file

@ -1,6 +1,6 @@
;;; ~/.doom.d/+calendar.el -*- lexical-binding: t; -*-
;;; https://github.com/cnsunyour/.doom.d/blob/master/modules/cnsunyour/calendar/config.el
;;; ~/.doom.d/+calendar.el -*- lexical-binding: t; -*-
;; 日历及纪念日相关设置
@ -16,6 +16,13 @@
;; (diary-chinese-anniversary lunar-month lunar-day y mark))
;; (diary-chinese-anniversary lunar-month lunar-day year mark)))
(setq calendar-date-style 'iso)
(setq diary-date-forms '((year "" month "" day "" " 星期[" "日一二三四五六" "]") ;; Chinese
(year "-" month "-" day) ;; ISO
(month "[-/]" day "[^-/0-9]") (year "[-/]" month "[-/]" day "[^0-9]")
(monthname " *" day "[^-0-9]") (year " *" monthname " *" day "[^0-9]")
(dayname "\\W")))
(setq calendar-mark-holidays-flag t
calendar-week-start-day 1)
@ -66,3 +73,7 @@
:config
(setq calendar-holidays (append cal-china-x-important-holidays
cal-china-x-general-holidays)))
;; diary
(setq diary-file "~/.local/js0ny/diary")