descriptions and keybindings as per ox-hugo docs
Mimicks the ox menu `C-c C-e H #`
This commit is contained in:
parent
8fd3bd80da
commit
8457d2f825
2 changed files with 25 additions and 6 deletions
|
@ -868,6 +868,7 @@ compelling reason, so..."
|
||||||
|
|
||||||
;;; Custom org modules
|
;;; Custom org modules
|
||||||
(if (featurep! +dragndrop) (load! "contrib/dragndrop"))
|
(if (featurep! +dragndrop) (load! "contrib/dragndrop"))
|
||||||
|
(if (featurep! +hugo) (load! "contrib/+hugo"))
|
||||||
(if (featurep! +ipython) (load! "contrib/ipython"))
|
(if (featurep! +ipython) (load! "contrib/ipython"))
|
||||||
(if (featurep! +present) (load! "contrib/present"))
|
(if (featurep! +present) (load! "contrib/present"))
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,30 @@
|
||||||
;;; +hugo.el --- ox-hugo support -*- lexical-binding: t; -*-
|
;;; +hugo.el --- ox-hugo support -*- lexical-binding: t; -*-
|
||||||
;;;###if (featurep! +hugo)
|
;;;###if (featurep! +hugo)
|
||||||
|
|
||||||
|
(defun org-hugo-doom-subtree-to-file-and-open ()
|
||||||
|
(interactive)
|
||||||
|
(org-open-file (org-hugo-export-wim-to-md)))
|
||||||
|
|
||||||
|
(defun org-hugo-doom-to-file-and-open ()
|
||||||
|
(interactive)
|
||||||
|
(org-open-file (org-hugo-export-to-md)))
|
||||||
|
|
||||||
|
(defun org-hugo-doom-all-subtrees-to-files ()
|
||||||
|
(interactive)
|
||||||
|
(org-hugo-export-wim-to-md :all-subtrees))
|
||||||
|
|
||||||
(use-package! ox-hugo
|
(use-package! ox-hugo
|
||||||
:after ox
|
:after ox)
|
||||||
|
|
||||||
(map! :map org-mode-map
|
(map! :map org-mode-map
|
||||||
:localleader
|
:localleader
|
||||||
(:prefix ("e" . "export")
|
(:prefix "e"
|
||||||
:desc "to hugo" "h" #'org-hugo-export-to-md
|
(:prefix ("H" . "hugo")
|
||||||
:desc "to hugo & open" "H" #'org-hugo-export-as-md)))
|
:desc "Subtree to file" "H" #'org-hugo-export-wim-to-md
|
||||||
|
:desc "To file" "h" #'org-hugo-export-wim-to-md
|
||||||
|
:desc "Subtree to file & open" "O" #'org-hugo-doom-subtree-to-file-and-open
|
||||||
|
:desc "To file & open" "o" #'org-hugo-doom-to-file-and-open
|
||||||
|
:desc "All subtrees to files" "a" #'org-hugo-doom-all-subtrees-to-files
|
||||||
|
:desc "To temporary buffer" "t" #'org-hugo-export-as-md)))
|
||||||
|
|
||||||
;;; +hugo.el ends here
|
;;; +hugo.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue