Skip to content

Commit

Permalink
lang/org: move contrib/+hugo -> contrib/hugo
Browse files Browse the repository at this point in the history
+ Refill +hugo flag's description in the README
+ Lazy load ox-hugo localleader keybinds by package, rather than by
  keymap deferral
  • Loading branch information
hlissner committed Oct 4, 2019
1 parent c023cef commit 423a38c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/lang/org/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode
+ =+pandoc= Enables pandoc integration into the Org exporter.
+ =+present= Enables integration with reveal.js, beamer and org-tree-slide, so
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.
+ =+hugo= Enables integration with [[https://gohugo.io][hugo]] to export from Emacs well-formed
([[https://github.com/russross/blackfriday][blackfriday]]) markdown.

** Plugins
+ [[https://orgmode.org/][org-plus-contrib]]
Expand Down
2 changes: 1 addition & 1 deletion modules/lang/org/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ compelling reason, so..."

;;; Custom org modules
(if (featurep! +dragndrop) (load! "contrib/dragndrop"))
(if (featurep! +hugo) (load! "contrib/+hugo"))
(if (featurep! +hugo) (load! "contrib/hugo"))
(if (featurep! +ipython) (load! "contrib/ipython"))
(if (featurep! +present) (load! "contrib/present"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
(use-package! ox-hugo
:after ox
:preface
(map! :map org-mode-map
(map! :after org
:map org-mode-map
:localleader
(:prefix "e"
(:prefix ("H" . "hugo")
Expand All @@ -14,5 +15,3 @@
: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

0 comments on commit 423a38c

Please sign in to comment.