2019-08-29 14:59:54 +02:00
|
|
|
;;; +hugo.el --- ox-hugo support -*- lexical-binding: t; -*-
|
|
|
|
;;;###if (featurep! +hugo)
|
|
|
|
|
|
|
|
(use-package! ox-hugo
|
2019-09-30 16:16:59 +02:00
|
|
|
:after ox
|
2019-10-04 10:28:36 +02:00
|
|
|
:preface
|
2019-10-04 12:17:47 -04:00
|
|
|
(map! :after org
|
|
|
|
:map org-mode-map
|
2019-09-30 16:16:59 +02:00
|
|
|
:localleader
|
|
|
|
(:prefix "e"
|
|
|
|
(:prefix ("H" . "hugo")
|
|
|
|
:desc "Subtree or File to Md to file" "H" #'org-hugo-export-wim-to-md
|
|
|
|
:desc "File to Md file" "h" #'org-hugo-export-to-md
|
2019-10-03 21:32:07 +02:00
|
|
|
:desc "Subtree or File to Md to file & open" "O" (λ! (org-open-file (org-hugo-export-wim-to-md)))
|
|
|
|
:desc "File to Md file & open" "o" (λ! (org-open-file (org-hugo-export-to-md)))
|
|
|
|
:desc "All subtrees (or File) to Md file(s)" "A" (λ! (org-hugo-export-wim-to-md :all-subtrees))
|
2019-09-30 16:16:59 +02:00
|
|
|
:desc "File to a temporary Md buffer" "t" #'org-hugo-export-as-md))))
|