use descriptions from kaushalmodi/ox-hugo@a8e0c6e
remove defun declarations, use lambdas
This commit is contained in:
parent
8457d2f825
commit
22d3dbe306
1 changed files with 12 additions and 18 deletions
|
@ -1,18 +1,6 @@
|
||||||
;;; +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)
|
||||||
|
|
||||||
|
@ -20,11 +8,17 @@
|
||||||
:localleader
|
:localleader
|
||||||
(:prefix "e"
|
(:prefix "e"
|
||||||
(:prefix ("H" . "hugo")
|
(:prefix ("H" . "hugo")
|
||||||
:desc "Subtree to file" "H" #'org-hugo-export-wim-to-md
|
:desc "Subtree or File to Md to file" "H" #'org-hugo-export-wim-to-md
|
||||||
:desc "To file" "h" #'org-hugo-export-wim-to-md
|
:desc "File to Md file" "h" #'org-hugo-export-to-md
|
||||||
:desc "Subtree to file & open" "O" #'org-hugo-doom-subtree-to-file-and-open
|
:desc "Subtree or File to Md to file & open" "O" '(lambda ()
|
||||||
:desc "To file & open" "o" #'org-hugo-doom-to-file-and-open
|
(interactive)
|
||||||
:desc "All subtrees to files" "a" #'org-hugo-doom-all-subtrees-to-files
|
(org-open-file (org-hugo-export-wim-to-md)))
|
||||||
:desc "To temporary buffer" "t" #'org-hugo-export-as-md)))
|
:desc "File to Md file & open" "o" '(lambda ()
|
||||||
|
(interactive)
|
||||||
|
(org-open-file (org-hugo-export-to-md)))
|
||||||
|
:desc "All subtrees (or File) to Md file(s)" "A" '(lambda ()
|
||||||
|
(interactive)
|
||||||
|
(org-hugo-export-wim-to-md :all-subtrees))
|
||||||
|
:desc "File to a temporary Md 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