Last active
November 11, 2021 04:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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