|
6 | 6 | ;; Original author of org-preview-html (until 2021-09): DarkSun <[email protected]>
|
7 | 7 | ;; Url: https://github.com/jakebox/org-preview-html
|
8 | 8 | ;; Keywords: Org, convenience, outlines
|
9 |
| -;; Version: 0.3 |
| 9 | +;; Version: 0.3.1 |
10 | 10 | ;; Package-Requires: ((emacs "25.1") (org "8.0"))
|
11 | 11 |
|
12 | 12 | ;; This file is NOT part of GNU Emacs.
|
@@ -148,7 +148,7 @@ Obselete as of version 0.3, instead use `org-preview-html-subtree-only'."
|
148 | 148 | (set-window-start nil eww-window-start)))))))
|
149 | 149 |
|
150 | 150 | (defun org-preview-html--kill-preview-buffer ()
|
151 |
| - "Kill the xwidget preview buffer and pop back to the previewed org buffer." |
| 151 | + "Kill the preview buffer and pop back to the previewed org buffer." |
152 | 152 | ;; Only do these things if the preview is around
|
153 | 153 | (when (bound-and-true-p org-preview-html--browser-buffer)
|
154 | 154 | ;; If preview is visible we first delete the window, otherwise
|
@@ -198,8 +198,7 @@ Obselete as of version 0.3, instead use `org-preview-html-subtree-only'."
|
198 | 198 | "Open a browser to preview the exported HTML file."
|
199 | 199 | ;; Store the exported HTML filename
|
200 | 200 | (setq-local org-preview-html--html-file (concat (file-name-sans-extension buffer-file-name) ".html"))
|
201 |
| - (unless (file-exists-p org-preview-html--html-file) |
202 |
| - (org-preview-html--org-export-html)) ;; Unless the file already exists, export it |
| 201 | + (org-preview-html--org-export-html)) ;; Export the org file to HTML |
203 | 202 | ;; Procedure to open the side-by-side preview
|
204 | 203 | (split-window-right)
|
205 | 204 | (other-window 1)
|
|
0 commit comments