I am trying to create a function, which captures a note and then copies the same note to another file (In my case for a google calendar synchronization). The problem ist that after giving the capture parameters the capture buffer closes automatically unlike the regular behaviour, where I have the option to finalize or refile the capture:
How should I edit the following function to remain in capture buffer?
(defun org-capture-copy-to-gcal () (interactive) (beginning-of-buffer) (org-capture) (org-copy-subtree) (find-file "D:/Google Drive/Documents/gcal.org") (end-of-buffer) (org-paste-subtree) (save-buffer) (kill-this-buffer))
And is there a way to customize the capture refile shortcut to another shorter key?