move +hugo feature to contrib/+hugo.el
This commit is contained in:
parent
a9e2bdf28c
commit
ea4fa7021d
2 changed files with 13 additions and 8 deletions
|
@ -394,10 +394,6 @@ file isn't in `org-directory'."
|
||||||
(mathjax . t)
|
(mathjax . t)
|
||||||
(variable . "revealjs-url=https://cdn.jsdelivr.net/npm/reveal.js@3/"))))
|
(variable . "revealjs-url=https://cdn.jsdelivr.net/npm/reveal.js@3/"))))
|
||||||
|
|
||||||
(when (featurep! +hugo)
|
|
||||||
(use-package! ox-hugo
|
|
||||||
:after ox)))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defun +org-init-habit-h ()
|
(defun +org-init-habit-h ()
|
||||||
|
@ -566,10 +562,7 @@ between the two."
|
||||||
(:prefix ("b" . "from beamer")
|
(:prefix ("b" . "from beamer")
|
||||||
:desc "to latex" "l" #'org-beamer-export-to-latex
|
:desc "to latex" "l" #'org-beamer-export-to-latex
|
||||||
:desc "to latex & open" "L" #'org-beamer-export-as-latex
|
:desc "to latex & open" "L" #'org-beamer-export-as-latex
|
||||||
:desc "as pdf" "p" #'org-beamer-export-to-pdf)
|
:desc "as pdf" "p" #'org-beamer-export-to-pdf))
|
||||||
(:when (featurep! +hugo)
|
|
||||||
:desc "to hugo" "h" #'org-hugo-export-to-md
|
|
||||||
:desc "to hugo & open" "H" #'org-hugo-export-as-md))
|
|
||||||
(:prefix ("g" . "goto")
|
(:prefix ("g" . "goto")
|
||||||
"g" #'org-goto
|
"g" #'org-goto
|
||||||
(:when (featurep! :completion ivy)
|
(:when (featurep! :completion ivy)
|
||||||
|
|
12
modules/lang/org/contrib/+hugo.el
Normal file
12
modules/lang/org/contrib/+hugo.el
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
;;; +hugo.el --- ox-hugo support -*- lexical-binding: t; -*-
|
||||||
|
;;;###if (featurep! +hugo)
|
||||||
|
|
||||||
|
(use-package! ox-hugo
|
||||||
|
:after ox
|
||||||
|
(map! :map org-mode-map
|
||||||
|
:localleader
|
||||||
|
(:prefix ("e" . "export")
|
||||||
|
:desc "to hugo" "h" #'org-hugo-export-to-md
|
||||||
|
:desc "to hugo & open" "H" #'org-hugo-export-as-md)))
|
||||||
|
|
||||||
|
;;; +hugo.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue