From 206801b56422a94afc646d9224fcef6c4de78200 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 13 Jun 2023 10:24:53 +0200 Subject: [PATCH] Add more info --- README.md | 6 ++++++ org-share-to-web.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae2b236..3fc9ce4 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,9 @@ Example. (setq org-share-to-web-domain "https://mydomain.com/") (setq org-share-to-web-directory "/ssh:debian@mydomain.com:~/www/") ``` + +## Run + +Open an Org file and run `org-share-to-web-buffer`. + +It will copy the URL to your clipboard to open the document share. diff --git a/org-share-to-web.el b/org-share-to-web.el index 29f7aa2..9c79742 100644 --- a/org-share-to-web.el +++ b/org-share-to-web.el @@ -23,7 +23,8 @@ (export-html (org-export-string-as (buffer-string) 'html))) (write-region export-html nil (concat org-share-to-web-directory filename-html)) (tramp-cleanup-all-connections) - (kill-new (concat org-share-to-web-domain filename-html)))) + (kill-new (concat org-share-to-web-domain filename-html))) + (message "Org shared online. URL copied to clipboard!")) (provide 'org-share-to-web)