Skip to content

Instantly share code, notes, and snippets.

@RhubarbSin
Last active November 11, 2021 04:36
Show Gist options
  • Save RhubarbSin/8d164425446595c541a0 to your computer and use it in GitHub Desktop.
Save RhubarbSin/8d164425446595c541a0 to your computer and use it in GitHub Desktop.
Function for replacing contents of an Emacs Confluence buffer with text exported by org-confluence-export-as-confluence
(setq blb/confluence-page-sig "~/doc/confluence-rd-snippet.xml")
(defun blb/confluence-org-get-export ()
(interactive)
(confluence-toggle-page-content-type)
(let ((export-buffer (get-buffer "*org CONFLUENCE Export*")))
(buffer-swap-text export-buffer)
(kill-buffer export-buffer))
(confluence-toggle-page-content-type)
(save-excursion
(goto-char (point-max))
(beginning-of-line)
(insert-file-contents blb/confluence-page-sig)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment