Merge pull request #1729 from zenlor/feature/ox-hugo
lang/org: add +hugo feature
This commit is contained in:
commit
1a66742bfc
5 changed files with 29 additions and 0 deletions
|
@ -127,6 +127,7 @@
|
||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
(org ; organize your plain life in plain text
|
(org ; organize your plain life in plain text
|
||||||
+dragndrop ; drag & drop files/images into org buffers
|
+dragndrop ; drag & drop files/images into org buffers
|
||||||
|
;+hugo ; use Emacs for hugo blogging
|
||||||
+ipython ; ipython/jupyter support for babel
|
+ipython ; ipython/jupyter support for babel
|
||||||
+pandoc ; export-with-pandoc support
|
+pandoc ; export-with-pandoc support
|
||||||
+present) ; using org-mode for presentations
|
+present) ; using org-mode for presentations
|
||||||
|
|
|
@ -61,6 +61,8 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode
|
||||||
+ =+pandoc= Enables pandoc integration into the Org exporter.
|
+ =+pandoc= Enables pandoc integration into the Org exporter.
|
||||||
+ =+present= Enables integration with reveal.js, beamer and org-tree-slide, so
|
+ =+present= Enables integration with reveal.js, beamer and org-tree-slide, so
|
||||||
Emacs can be used for presentations.
|
Emacs can be used for presentations.
|
||||||
|
+ =+hugo= Enables integration with [[https://gohugo.io][hugo]] to export from
|
||||||
|
Emacs well-formed ([[https://github.com/russross/blackfriday][blackfriday]]) markdown.
|
||||||
|
|
||||||
** Plugins
|
** Plugins
|
||||||
+ [[https://orgmode.org/][org-plus-contrib]]
|
+ [[https://orgmode.org/][org-plus-contrib]]
|
||||||
|
@ -99,6 +101,8 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode
|
||||||
+ [[https://github.com/anler/centered-window-mode][centered-window]]
|
+ [[https://github.com/anler/centered-window-mode][centered-window]]
|
||||||
+ [[https://github.com/takaxp/org-tree-slide][org-tree-slide]]
|
+ [[https://github.com/takaxp/org-tree-slide][org-tree-slide]]
|
||||||
+ [[https://github.com/yjwen/org-reveal][ox-reveal]]
|
+ [[https://github.com/yjwen/org-reveal][ox-reveal]]
|
||||||
|
+ =+hugo=
|
||||||
|
+ [[https://github.com/kaushalmodi/ox-hugo][ox-hugo]]
|
||||||
|
|
||||||
** Hacks
|
** Hacks
|
||||||
+ The window is recentered when following links.
|
+ The window is recentered when following links.
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
||||||
|
|
18
modules/lang/org/contrib/+hugo.el
Normal file
18
modules/lang/org/contrib/+hugo.el
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
;;; +hugo.el --- ox-hugo support -*- lexical-binding: t; -*-
|
||||||
|
;;;###if (featurep! +hugo)
|
||||||
|
|
||||||
|
(use-package! ox-hugo
|
||||||
|
:after ox
|
||||||
|
:preface
|
||||||
|
(map! :map org-mode-map
|
||||||
|
: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
|
||||||
|
: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))
|
||||||
|
:desc "File to a temporary Md buffer" "t" #'org-hugo-export-as-md))))
|
||||||
|
|
||||||
|
;;; +hugo.el ends here
|
|
@ -52,3 +52,8 @@
|
||||||
|
|
||||||
(when (featurep! +journal)
|
(when (featurep! +journal)
|
||||||
(package! org-journal))
|
(package! org-journal))
|
||||||
|
|
||||||
|
(when (featurep! +hugo)
|
||||||
|
(package! ox-hugo :recipe (:host github
|
||||||
|
:repo "kaushalmodi/ox-hugo"
|
||||||
|
:nonrecursive t)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue