commit 001f1300077a145f7e0b4fbe074db4506a5fed26 parent 1e54f878d202049ace5f98763453224a4a1e6d8e Author: Hugo Soucy <hugo@soucy.cc> Date: Thu, 8 Oct 2020 20:25:46 -0400 Test something Diffstat:
M | defuns/org-export-headlines-to-html.el | | | 10 | ++++------ |
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/defuns/org-export-headlines-to-html.el b/defuns/org-export-headlines-to-html.el @@ -1,6 +1,6 @@ ;; export headlines to separate files ;; http://emacs.stackexchange.com/questions/2259/how-to-export-top-level-headings-of-org-mode-buffer-to-separate-files -(defun org-export-headlines-to-html () +(defun org-export-headlines-to-pdf () "Export all subtrees that are *not* tagged with :noexport: to separate files. @@ -20,11 +20,9 @@ are exported to a filename derived from the headline text." (unless export-file (org-set-property "EXPORT_FILE_NAME" - (replace-regexp-in-string " " "-" (nth 4 (org-heading-components))))) + (replace-regexp-in-string " " "_" (nth 4 (org-heading-components))))) (deactivate-mark) - (org-latex-export-to-html nil t) + (org-latex-export-to-pdf nil t) (unless export-file (org-delete-property "EXPORT_FILE_NAME")) (set-buffer-modified-p modifiedp))) - "-noexport" 'region-start-level)))) - -;;; org-export-headlines-to-html.el ends here + "-noexport" 'region-start-level))))