From 97f81d9aaf6b6f9d2febc40df268f0f48927980b Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Tue, 11 Mar 2025 18:49:08 -0500 Subject: [PATCH] Adding ox-hugo to Emacs for converting Org to Hugo-flavored markdown. --- .config/emacs/config.el | 20 ++++++++++++-------- .config/emacs/config.org | 12 ++++++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.config/emacs/config.el b/.config/emacs/config.el index 0833ad4..203e328 100644 --- a/.config/emacs/config.el +++ b/.config/emacs/config.el @@ -568,14 +568,14 @@ (eval-after-load 'org-indent '(diminish 'org-indent-mode)) -(custom-set-faces - '(org-level-1 ((t (:inherit outline-1 :height 1.7)))) - '(org-level-2 ((t (:inherit outline-2 :height 1.6)))) - '(org-level-3 ((t (:inherit outline-3 :height 1.5)))) - '(org-level-4 ((t (:inherit outline-4 :height 1.4)))) - '(org-level-5 ((t (:inherit outline-5 :height 1.3)))) - '(org-level-6 ((t (:inherit outline-5 :height 1.2)))) - '(org-level-7 ((t (:inherit outline-5 :height 1.1))))) + (custom-set-faces + '(org-level-1 ((t (:inherit outline-1 :height 1.7)))) + '(org-level-2 ((t (:inherit outline-2 :height 1.6)))) + '(org-level-3 ((t (:inherit outline-3 :height 1.5)))) + '(org-level-4 ((t (:inherit outline-4 :height 1.4)))) + '(org-level-5 ((t (:inherit outline-5 :height 1.3)))) + '(org-level-6 ((t (:inherit outline-5 :height 1.2)))) + '(org-level-7 ((t (:inherit outline-5 :height 1.1))))) (require 'org-tempo) @@ -585,6 +585,10 @@ :commands toc-org-enable :init (add-hook 'org-mode-hook 'toc-org-enable)) +(use-package ox-hugo + :ensure t ;Auto-install the package from Melpa + :after ox) + (use-package pdf-tools :defer t :commands (pdf-loader-install) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index fd30784..3f31bb6 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -41,6 +41,7 @@ - [[#org-tempo][Org-Tempo]] - [[#preserve-indentation-on-org-babel-tangle][Preserve Indentation On Org-Babel-Tangle]] - [[#toc-org][Toc-Org]] + - [[#ox-hugo][Ox-Hugo]] - [[#pdfs][PDFs]] - [[#perspective][PERSPECTIVE]] - [[#projectile][PROJECTILE]] @@ -833,6 +834,17 @@ Allows us to create a Table of Contents in our Org docs. (use-package toc-org :commands toc-org-enable :init (add-hook 'org-mode-hook 'toc-org-enable)) + +#+end_src + +** Ox-Hugo +Export org docs to Hugo-style markdown. Hugo is a static website generator. + +#+begin_src emacs-lisp +(use-package ox-hugo + :ensure t ;Auto-install the package from Melpa + :after ox) + #+end_src * PDFs