From f49334c21b639fed7bceb7b39bec96b7c017cff3 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Tue, 11 Aug 2026 11:08:25 -0400 Subject: [PATCH] feat: show ISO week numbers in calendar --- doom/.config/doom/README.org | 14 ++++++++++++++ doom/.config/doom/config.el | 13 +++++++++++++ 2 files changed, 27 insertions(+) diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index 99e7645..2a908fe 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -744,6 +744,19 @@ org-agenda-files (seq-uniq org-agenda-files) (interactive) (let ((date (calendar-cursor-to-date))) (org-roam-dailies-goto-date date))) + (setq calendar-week-start-day 1) + + (setq calendar-intermonth-text + '(propertize + (format "%2d" + (car + (calendar-iso-from-absolute + (calendar-absolute-from-gregorian (list month day year))))) + 'font-lock-face 'font-lock-warning-face)) + + (setq calendar-intermonth-header + (propertize "W#" + 'font-lock-face 'font-lock-keyword-face)) ) ;; Bind RET in calendar mode to open daily note instead of default exit @@ -756,6 +769,7 @@ org-agenda-files (seq-uniq org-agenda-files) (define-key org-read-date-minibuffer-local-map (kbd "M-k") (kbd "S-")) (define-key org-read-date-minibuffer-local-map (kbd "M-l") (kbd "S-"))) #+end_src + ** +Org Superstar mode+ org-modern instead diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 149cc1f..a9e02c1 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -585,6 +585,19 @@ org-agenda-files (seq-uniq org-agenda-files) (interactive) (let ((date (calendar-cursor-to-date))) (org-roam-dailies-goto-date date))) + (setq calendar-week-start-day 1) + + (setq calendar-intermonth-text + '(propertize + (format "%2d" + (car + (calendar-iso-from-absolute + (calendar-absolute-from-gregorian (list month day year))))) + 'font-lock-face 'font-lock-warning-face)) + + (setq calendar-intermonth-header + (propertize "W#" + 'font-lock-face 'font-lock-keyword-face)) ) ;; Bind RET in calendar mode to open daily note instead of default exit