]> git.ekhem.eu.org Git - guix.git/commitdiff
[emacs] Format conf-calendar.el.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 21 Apr 2024 10:41:16 +0000 (12:41 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 21 Apr 2024 10:41:16 +0000 (12:41 +0200)
emacs/.config/emacs/conf/conf-calendar.el

index f6d7865ee0b106d633a3182ce3a3254842befef8..4605951e3bd575a3ee4fcc41e11449ea170bcc1e 100644 (file)
@@ -49,8 +49,8 @@
   :ensure t
   :bind
   (:map cfw:calendar-mode-map
-       ("d" . cfw:navi-goto-date-command)
-       ("g" . cfw:refresh-calendar-buffer))
+        ("d" . cfw:navi-goto-date-command)
+        ("g" . cfw:refresh-calendar-buffer))
   :custom
   (calendar-holidays holiday-christian-holidays))
 
 
   (defun conf:get-org-file-for-calendar-id ()
     (let* ((calendar-id
-           (completing-read "Select account: "
-                            (mapcar 'car conf:gcal-calendar-id-org-file-map)))
-          (gcal-file (cdr (assoc calendar-id
-                                 conf:gcal-calendar-id-org-file-map))))
+            (completing-read "Select account: "
+                             (mapcar 'car conf:gcal-calendar-id-org-file-map)))
+           (gcal-file (cdr (assoc calendar-id
+                                  conf:gcal-calendar-id-org-file-map))))
       (find-file gcal-file)
       (end-of-buffer)
       (open-line 2)))
   (setq cfw:org-capture-template
-       '("c" "calendar event" entry
-         (function conf:get-org-file-for-calendar-id)
-         "* %?"))
+        '("c" "calendar event" entry
+          (function conf:get-org-file-for-calendar-id)
+          "\n* %?"))
   (add-to-list 'org-capture-templates cfw:org-capture-template)
 
   (defun conf:org-gcal-delete-at-point ()