]> git.ekhem.eu.org Git - guix.git/commitdiff
[emacs] Append date when inserting calendar event.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 21 Apr 2024 10:41:41 +0000 (12:41 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 21 Apr 2024 10:41:41 +0000 (12:41 +0200)
If the date is not present, org-gcal appends it. However, it requires
full date+time timestamp specification which is not always
appropriate.

emacs/.config/emacs/conf/conf-calendar.el

index 4605951e3bd575a3ee4fcc41e11449ea170bcc1e..06dfb38ee971aac07fc1848e45b4cd77d21c13bc 100644 (file)
@@ -80,7 +80,7 @@
   (setq cfw:org-capture-template
         '("c" "calendar event" entry
           (function conf:get-org-file-for-calendar-id)
-          "\n* %?"))
+          "\n* %?\n:org-gcal:\n%^t\n:END:\n\n"))
   (add-to-list 'org-capture-templates cfw:org-capture-template)
 
   (defun conf:org-gcal-delete-at-point ()