From 4f8fd20b0ec133cead89a7a71efda34fc758c643 Mon Sep 17 00:00:00 2001 From: Daneel Date: Wed, 25 Feb 2026 15:29:29 +0100 Subject: [PATCH] calfw: add 'a' keybinding for org-capture + calendar event template - New capture template 'c' creates SCHEDULED entry on selected date - calfw-org-capture-template set for calfw integration - Events go to calendar_outbox.org (synced via org-caldav twoway) - Keybinding: a = add event, RET = open agenda day --- config.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config.el b/config.el index e5fa420..e0d7c76 100644 --- a/config.el +++ b/config.el @@ -317,7 +317,12 @@ ("w" "Weight" table-line (file+headline ,(ms/org-file "metrics.org") "Weight") "| %U | %^{Weight} | %^{Notes} |" - :kill-buffer t)))) + :kill-buffer t) + + ("c" "Calendar event" entry + (file ,(ms/org-file "calendar_outbox.org")) + "* %?\nSCHEDULED: %(calfw-org-capture-day)\n" + :empty-lines 1)))) ;;; ============================================================ @@ -1587,6 +1592,12 @@ Skip for beamer exports — beamer uses adjustbox on plain tabular." (use-package! calfw-org :demand t :config + ;; org-capture integration: "a" to add event on selected date + (setq calfw-org-capture-template + '("c" "Calendar event" entry + (file "~/org/calendar_outbox.org") + "* %?\nSCHEDULED: %(calfw-org-capture-day)\n")) + ;; Evil normal state for calfw (SPC = Doom leader works) (evil-set-initial-state 'calfw-calendar-mode 'normal) (evil-set-initial-state 'calfw-details-mode 'normal) @@ -1603,6 +1614,7 @@ Skip for beamer exports — beamer uses adjustbox on plain tabular." "M" #'calfw-change-view-month "D" #'calfw-change-view-day "TAB" #'calfw-navi-next-item-command + "a" #'org-capture "q" #'bury-buffer "x" #'calfw-org-clean-exit "RET" #'calfw-org-open-agenda-day