diff --git a/.gitmodules b/.gitmodules index 851c661..9740242 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/combobulate b/combobulate new file mode 160000 index 0000000..c7e4670 --- /dev/null +++ b/combobulate @@ -0,0 +1 @@ +Subproject commit c7e4670a3047c0b58dff3746577a5c8e5832cfba diff --git a/global.org b/global.org index 9e38fe5..fdb7663 100644 --- a/global.org +++ b/global.org @@ -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