mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
move +hugo feature to contrib/+hugo.el
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user