Add export-ics-to-nextcloud facility

master
Jacopo De Simoi 2 years ago
parent bb0bb13f20
commit 79ee6753a2
  1. 3
      .gitmodules
  2. 1
      combobulate
  3. 18
      global.org

3
.gitmodules vendored

@ -145,3 +145,6 @@
[submodule "org-timeline"]
path = org-timeline
url = https://github.com/Fuco1/org-timeline.git
[submodule "combobulate"]
path = combobulate
url = https://github.com/mickeynp/combobulate.git

@ -0,0 +1 @@
Subproject commit c7e4670a3047c0b58dff3746577a5c8e5832cfba

@ -1985,9 +1985,23 @@
(global-set-key (kbd "C-c n f") 'org-roam-node-find)
(global-set-key (kbd "C-c n l") 'org-roam-node-insert)
(global-set-key (kbd "C-c n n") 'org-roam-buffer-toggle)
#+end_src
*** export to ics
#+begin_src emacs-lisp
(defun wilder/push-subtree-to-nextcloud ()
(interactive)
(org-back-to-heading)
(org-map-entries #'wilder/push-heading-to-nextcloud nil 'tree))
(defun wilder/push-heading-to-nextcloud ()
(interactive)
(org-narrow-to-subtree)
(let ((org-icalendar-scheduled-summary-prefix "")
(org-icalendar-use-scheduled '(event-if-todo))
(org-icalendar-include-todo) nil)
(shell-command (concat "~/scripts/push-to-nextcloud-cal.sh "
(org-icalendar-export-to-ics))))
(widen))
#+end_src
** elisp
*** Paredit

Loading…
Cancel
Save