diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-11 15:56:10 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-11 15:56:10 -0500 |
| commit | ee1108e6f87ed347a87bc2e6db11419a00aa7877 (patch) | |
| tree | b9e59321c7dec966bcbac0cf2bdc717b22edc5ee | |
| parent | 0f03364c1f61d4f1602337771dec0455f9afe611 (diff) | |
| download | dotemacs-ee1108e6f87ed347a87bc2e6db11419a00aa7877.tar.gz dotemacs-ee1108e6f87ed347a87bc2e6db11419a00aa7877.zip | |
refactor(org-export): delete dead ox-texinfo block, relocate footnote setting
The ox-texinfo block could never run: :defer t with no autoload trigger,
and absent from the dolist that force-requires the other backends. So its
:config never fired, and Texinfo export was unavailable despite the
commentary advertising it. I deleted the block and dropped the Texinfo
line from the commentary. The commentary also claimed subtree default
scope while the code sets 'buffer, so I fixed that too.
I moved org-html-footnote-separator out of org-babel-config, where it sat
as a stray ox-html setting, into ox-html's own :config. ox-html loads
before any HTML export reads the value, so the timing is unchanged.
| -rw-r--r-- | modules/org-babel-config.el | 3 | ||||
| -rw-r--r-- | modules/org-export-config.el | 16 |
2 files changed, 3 insertions, 16 deletions
diff --git a/modules/org-babel-config.el b/modules/org-babel-config.el index 79661013..51919da1 100644 --- a/modules/org-babel-config.el +++ b/modules/org-babel-config.el @@ -173,8 +173,5 @@ session when working in trusted files, and back on when done." ;; requires ob-racket, not yet in repositories ;; (add-to-list 'org-structure-template-alist '("sicp" . "src racket :lang sicp")) -;; drop Org’s default footnote list at the end -(setq org-html-footnote-separator "") - (provide 'org-babel-config) ;;; org-babel-config.el ends here. diff --git a/modules/org-export-config.el b/modules/org-export-config.el index 5a6f09fc..c3d3294c 100644 --- a/modules/org-export-config.el +++ b/modules/org-export-config.el @@ -20,7 +20,6 @@ ;; - HTML: Web publishing with HTML5 support ;; - Markdown: README files and web content ;; - ODT: Office documents for LibreOffice/MS Word -;; - Texinfo: GNU documentation and Info files ;; ;; Extended via Pandoc: ;; - Additional formats: DOCX, self-contained HTML5 @@ -28,7 +27,7 @@ ;; ;; Key features: ;; - UTF-8 encoding enforced across all backends -;; - Subtree export as default scope +;; - Buffer export as default scope ;; ;; Note: reveal.js presentations are handled by org-reveal-config.el (C-; p) ;; @@ -68,17 +67,8 @@ :config (setq org-html-postamble nil) (setq org-html-html5-fancy t) - (setq org-html-head-include-default-style nil)) - - -(use-package ox-texinfo - :ensure nil ; Built into Org - :defer t - :after ox - :config - (setq org-texinfo-coding-system 'utf-8) - (setq org-texinfo-default-class "info") - (add-to-list 'org-export-backends 'texinfo)) + (setq org-html-head-include-default-style nil) + (setq org-html-footnote-separator "")) ;; no separator between adjacent footnote refs (use-package ox-pandoc :defer t |
